Class: Slippers::BindingWrapper
- Inherits:
-
Object
- Object
- Slippers::BindingWrapper
- Defined in:
- lib/engine/binding_wrapper.rb
Instance Method Summary collapse
- #[](method) ⇒ Object
-
#initialize(bindings) ⇒ BindingWrapper
constructor
A new instance of BindingWrapper.
Constructor Details
#initialize(bindings) ⇒ BindingWrapper
Returns a new instance of BindingWrapper.
3 4 5 |
# File 'lib/engine/binding_wrapper.rb', line 3 def initialize(bindings) @bindings = bindings end |
Instance Method Details
#[](method) ⇒ Object
6 7 8 |
# File 'lib/engine/binding_wrapper.rb', line 6 def [](method) eval('@'+ method.to_s, @bindings) end |