Method: Formotion::Base#initWithCoder
- Defined in:
- lib/formotion/base.rb
#initWithCoder(decoder) ⇒ Object
44 45 46 47 48 49 50 51 |
# File 'lib/formotion/base.rb', line 44 def initWithCoder(decoder) self.init self.class.const_get(:SERIALIZE_PROPERTIES).each {|prop| value = decoder.decodeObjectForKey(prop.to_s) self.send("#{prop}=".to_sym, value) if not value.nil? } self end |