Class: B
- Inherits:
-
Object
- Object
- B
- Defined in:
- ext/binding_of_caller/example.rb
Instance Method Summary collapse
Instance Method Details
#b ⇒ Object
20 21 22 23 24 25 26 27 |
# File 'ext/binding_of_caller/example.rb', line 20 def b x = 10 puts binding_of_caller(0).eval('local_variables') puts binding_of_caller(1).eval('local_variables') puts binding_of_caller(2).eval('local_variables') puts binding_of_caller(3).eval('local_variables') puts binding_of_caller(400).eval('local_variables') end |