You can’t subclass Binding, so we delegate (which is better anyway).

Methods
Constants
EVENT_MAP = { :all => ['call', 'c-call', 'return', 'c-return', 'line', 'class', 'end', 'raise'], :before => ['call', 'c-call'], :after => ['return', 'c-return'], :call => ['call'], :return => ['return'], :ccall => ['c-call'], :creturn => ['c-return'], :line => ['line'], :class => ['class'], :end => ['end'], :raise => ['raise']
  methods for working with events
Attributes
[RW] back_binding — instance ——————-
[RW] binding — instance ——————-
[RW] event — instance ——————-
Public Class methods
active() [ source ]
active=(x) [ source ]
new( event, method, bind, back_binding=bind ) [ source ]

Until Ruby has a built-in way to get the name of the calling method that information must be passed into the TracePoint.

trace( {|| ...} [ source ]

Trace execution using a TracePoint.

Public Instance methods
===(e) [ source ]

For use in case conditions

back() [ source ]

shorthand for back_binding

bind() [ source ]

shorthand for binding

called() [ source ]

Returns the name of the event’s method. This could delegate to the binding if Ruby had an internal way to retrieve the current method name.

This method is also aliased as method_name me
event?() [ source ]

Is the trace point defined or undefined?

event_map(e) [ source ]
eventless?() [ source ]
me()

Alias for called

method_name()

Alias for called

self() [ source ]

Delegates "self" to the binding which in turn delegates the binding object.