RubyGems.org

AttrImmutable add the attr_immutable class method to create immutable properties on Ruby classes. The attribute are only accessible using the accessor/mutator pair by hiding the attribute value using a closure. (ie. the immutable attribute is not stored in an instance variable and therefore can't be accessed in any other way. No developer end runs.)

installgem install attr_immutable
Authors

Mark Menard

2,909 total downloads 1,018 for this version
Owners

D4cd33ef188f9958c3acd8437d6503f2

Gemfile
gem "attr_immutable", "~> 1.0.1"
Versions
  1. 1.0.1 September 6, 2011
  2. 1.0.0 September 6, 2011
  3. 0.0.1 September 4, 2011
Development Dependencies
  1. rspec ~> 2.6