Class: Slippers::BindingWrapper

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

Instance Method Summary collapse

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