[ANN] SuperCaller 1.0.0 Released

E

Eric Hodel

SuperCaller version 1.0.0 has been released!

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:

## 1.0.0 / 2007-06-30

* 1 major enhancement
* Birthday!

* <http://seattlerb.org/SuperCaller>
 
D

Daniel DeLorme

Eric said:
SuperCaller version 1.0.0 has been released!

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"

That is really awesome.
The only thing missing is stack.first.binding ;-)

Daniel
 
E

Eric Hodel

Eric said:
SuperCaller version 1.0.0 has been released!
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"

That is really awesome.
The only thing missing is stack.first.binding ;-)

Impossible, rb_f_binding() is static. (Well, you could reimplement
rb_f_binding(), but I don't like to do that kind of stuff.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,778
Messages
2,569,605
Members
45,238
Latest member
Top CryptoPodcasts

Latest Threads

Top