Class: Binding
- Inherits:
-
Object
- Object
- Binding
- Defined in:
- lib/tracepoint.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#eval(str) ⇒ Object
Evaluate a Ruby source code string (or block) in the binding context.
-
#self ⇒ Object
Returns self of the binding context.
Instance Method Details
#eval(str) ⇒ Object
Evaluate a Ruby source code string (or block) in the binding context.
194 195 196 |
# File 'lib/tracepoint.rb', line 194 def eval(str) Kernel.eval(str, self) end |
#self ⇒ Object
Returns self of the binding context.
201 202 203 |
# File 'lib/tracepoint.rb', line 201 def self() @_self ||= eval("self") end |