module Motion::Encodable::ClassMethods

Public Instance Methods

load(data) click to toggle source
# File lib/motion/encodable.rb, line 15
def load(data)
  NSKeyedUnarchiver.unarchiveObjectWithData(data)
end
properties(*props) click to toggle source
# File lib/motion/encodable.rb, line 8
def properties(*props)
  @properties = []
  props.each {|prop|
    @properties << prop
  }
end