File: helpers.rb

package info (click to toggle)
libshoulda-ruby 2.10.3-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 880 kB
  • ctags: 726
  • sloc: ruby: 5,764; makefile: 6
file content (8 lines) | stat: -rw-r--r-- 202 bytes parent folder | download
1
2
3
4
5
6
7
8
module Shoulda # :nodoc:
  module Helpers
    # Prints a message to stdout, tagged with the name of the calling method.
    def report!(msg = "")
      puts("#{caller.first}: #{msg}")
    end
  end
end