Top Level Namespace

Defined Under Namespace

Classes: Hash, Profigure

Instance Method Summary collapse

Instance Method Details

#dbg(msg) ⇒ Object



9
10
11
12
13
# File 'lib/profigure.rb', line 9

def dbg( msg )
  file, line, method_raw = caller[0].split('/').last.split(':')
  method = method_raw.match(/^in `(.+)'/)[1] rescue "unknown"
  puts "#{method} (#{file}##{line}): #{msg}"
end