Top Level Namespace

Instance Method Summary collapse

Instance Method Details

#puts(msg) ⇒ Object



1
2
3
4
5
# File 'lib/mygems-demo.rb', line 1

def puts msg
  caller = caller_locations(1,1)[0]
  $stdout.puts "!@" + caller.lineno.to_s
  $stdout.puts msg
end