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