class Object
Constants
- MoStash
Public Instance Methods
dbg(obj, msg=nil)
click to toggle source
# File lib/mostash.rb, line 6 def dbg(obj, msg=nil) file, line, method_raw = caller[0].split('/').last.split(':') method = method_raw.match(/^in `(.+)'/)[1] #puts "#{method} (#{file}##{line}): #{msg}" msg += " " if msg puts "#{msg}#{obj.inspect}" obj end