-
-
Notifications
You must be signed in to change notification settings - Fork 0
seattlerb/supercaller
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
= SuperCaller A Kernel#caller enhancement Documentation: http://seattlerb.org/SuperCaller File Bugs: http://rubyforge.org/tracker/?func=add&group_id=1513&atid=5921 == DESCRIPTION: SuperCaller adds a beefed-up version of Kernel#caller and a beefed up version of Exception#backtrace. == FEATURES/PROBLEMS: * Can cause Ruby to crash when an Exception with SuperCaller's backtrace reaches the top level. == SYNOPSIS: Regular old Kernel#super_caller: 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" Fancy Exception#backtrace: require 'super_caller/exception' def raiser() raise end def raisee raiser rescue => e p e.backtrace.first.sexp end raiser # => [:vcall, :raise] == INSTALL: sudo gem install SuperCaller
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published