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