OpenStruct implement for RubyMotion
v = Motion::OpenStruct.new(:one => 'two')
p = Motion::OpenStruct.new(:one => 'two')
puts v
puts v == p
- Add this to your
Gemfile
:gem 'motion-ostruct'
- Run
bundle install
BSD 2-clause. See LICENSE file.
- Email: hboon@motionobj.com
- Web: http://hboon.com/
- Twitter: http://twitter.com/hboon
Code is courtesy of Jack Watson-Hamblin.