SuperCaller version 1.0.0 has been released!

Eric Hodel | Sun, 05 Aug 2007 04:40:00 GMT

Posted in ,

SuperCaller adds a beefed-up version of Kernel#caller and a beefed up version of Exception#backtrace.
require 'super_caller'

def something() super_caller end
stack = something
p stack.first.file # => "-"
p stack.first.line # => 4
p stack.first.method_name # => nil
p stack.first.self # => main
p stack.first.sexp # => [:vcall, :super_caller]
p stack.first.source # => "def something\n  super_caller\nend"
Changes in 1.0.0 / 2007-06-30:
  • 1 major enhancement
    • Birthday!
http://seattlerb.org/SuperCaller no comments

Comments RSS FEED

Comments are disabled