Class: Responding::Class

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

Instance Method Summary collapse

Constructor Details

#initialize(hash = {}) ⇒ Class

Returns a new instance of Class.



15
16
17
18
19
# File 'lib/responding.rb', line 15

def initialize(hash = {})
  hash.each do |attr, value|
    public_send :"#{attr}=", value
  end
end