Module: Supernova::AttrInitializer::InstanceMethods

Defined in:
lib/supernova/attr_initializer.rb

Instance Method Summary collapse

Instance Method Details

#initialize(attributes = {}) ⇒ Object



3
4
5
6
7
# File 'lib/supernova/attr_initializer.rb', line 3

def initialize(attributes = {})
  attributes.each do |key, value|
    self.send(:"#{key}=", value)
  end
end