Class: Responding::Class
- Inherits:
-
Object
- Object
- Responding::Class
- Defined in:
- lib/responding.rb
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ Class
constructor
A new instance of Class.
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 |