Class: Checkup::Binder
- Inherits:
-
Object
- Object
- Checkup::Binder
- Defined in:
- lib/checkup/binder.rb
Instance Method Summary collapse
- #get_binding ⇒ Object
-
#initialize(key_and_values) ⇒ Binder
constructor
A new instance of Binder.
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_binding ⇒ Object
9 10 11 |
# File 'lib/checkup/binder.rb', line 9 def get_binding binding end |