Top Level Namespace
Defined Under Namespace
Classes: MoStash
Instance Method Summary collapse
Instance Method Details
#dbg(msg) ⇒ Object
5 6 7 8 9 |
# File 'lib/mostash.rb', line 5 def dbg( msg ) file, line, method_raw = caller[0].split('/').last.split(':') method = method_raw.match(/^in `(.+)'/)[1] puts "#{method} (#{file}##{line}): #{msg}" end |