Class: Checkup::Binder

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

Instance Method Summary collapse

Constructor Details

#initialize(key_and_values) ⇒ Binder

Returns a new instance of Binder.



3
4
5
6
7
# File 'lib/checkup/binder.rb', line 3

def initialize(key_and_values)
  key_and_values.each do |key, value|
    instance_variable_set("@#{key}", value)
  end
end

Instance Method Details

#get_bindingObject



9
10
11
# File 'lib/checkup/binder.rb', line 9

def get_binding
  binding
end