Module: RMXSetAttributes::InstanceMethods

Defined in:
lib/motion/RMXSetAttributes.rb

Instance Method Summary collapse

Instance Method Details

#after_attributes_setObject



10
11
# File 'lib/motion/RMXSetAttributes.rb', line 10

def after_attributes_set
end

#attributes=(attrs = {}) ⇒ Object



13
14
15
16
17
18
19
20
# File 'lib/motion/RMXSetAttributes.rb', line 13

def attributes=(attrs={})
  keys = [] + attrs.keys
  while key = keys.pop
    value = attrs[key]
    self.send("#{key}=", value)
  end
  after_attributes_set
end