Sha256: f6d4a964647883a9f29e3f9196c99d3bb09d661c302e2bf772f1939c4695fd12

Contents?: true

Size: 340 Bytes

Versions: 2

Compression:

Stored size: 340 Bytes

Contents

require 'ostruct'

require File.join(File.dirname(__FILE__), "mostash", "mostash")
MoStash = Mostash

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mostash-0.1.1 lib/mostash.rb
mostash-0.1.0 lib/mostash.rb