Module: Motion::Encodable::ClassMethods
- Defined in:
- lib/motion/encodable.rb
Instance Method Summary collapse
Instance Method Details
#load(data) ⇒ Object
16 17 18 |
# File 'lib/motion/encodable.rb', line 16 def load(data) NSKeyedUnarchiver.unarchiveObjectWithData(data) end |
#properties(*props) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/motion/encodable.rb', line 8 def properties(*props) props.each {|prop| @properties ||= [] @properties << prop attr_accessor prop } end |