Module: HasHelpers::Attributes::AttributeAssignment

Included in:
Icon, Service
Defined in:
lib/has_helpers/attributes.rb

Instance Method Summary collapse

Instance Method Details

#assign_attributes(attrs = {}) ⇒ Object



190
191
192
193
194
# File 'lib/has_helpers/attributes.rb', line 190

def assign_attributes(attrs = {})
  attrs.each do |attr, value|
    send("#{attr}=", value)
  end
end