Class: Binding
Overview
Modify Binding to extract value.
Instance Method Summary collapse
-
#[](name) ⇒ Object
Get the value of a variable of method in this binding.
Instance Method Details
#[](name) ⇒ Object
Get the value of a variable of method in this binding.
9 10 11 |
# File 'lib/sup_tag/extensions/binding.rb', line 9 def [](name) return eval("lambda { #{name.to_s} }", self).call end |