SimpleStruct is a lighter weight struct then ruby's standard struct in that it doest not include Enumerable.
Add this line to your application's Gemfile:
gem 'simple_struct'
And then execute:
$ bundle
Or install it yourself as:
$ gem install simple_struct
class Car < SimpleStruct.new(:color, :size)
end
# or
Car = SimpleStruct.new(:color, :size) do
end
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Added some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request