Class: Binding

Inherits:
Object
  • Object
show all
Defined in:
lib/tracepoint.rb

Overview

:nodoc:

Instance Method Summary collapse

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

#selfObject

Returns self of the binding context.



201
202
203
# File 'lib/tracepoint.rb', line 201

def self()
  @_self ||= eval("self")
end