Method: Checkup::Binder#initialize
- Defined in:
- lib/checkup/binder.rb
#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 |