Method: Formotion::Base#copyWithZone

Defined in:
lib/formotion/base.rb

#copyWithZone(zone) ⇒ Object



53
54
55
56
57
58
59
# File 'lib/formotion/base.rb', line 53

def copyWithZone(zone)
  copy = self.class.allocWithZone(zone).init
  self.class.const_get(:SERIALIZE_PROPERTIES).each {|prop|
    copy.send("#{prop}=".to_sym, self.send(prop))
  }
  copy
end