A version of Ruby's Struct class that creates classes whose instances are immutable. It works just as Struct, but there are no setters, and you can't use =. As a bonus feature the constructor of classes inheriting from ImmutableStruct can take named parameters in the form of a hash.
Gemfile gem 'immutable_struct', '~> 1.0.2'
install gem install immutable_struct -v 1.0.2