RubyGems Navigation menu

attr_immutable 1.0.1

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.)

Gemfile
          gem 'attr_immutable', '~> 1.0.1'
  
  
  
  
  
  
  

install
          gem install attr_immutable
  
  
  
  
  
  
  

Total downloads 5,655

For this version 2,275

Required Ruby Version: None

Links:

Versions:

  1. 1.0.1 - September 6, 2011 (5 KB)
  2. 1.0.0 - September 6, 2011 (5 KB)
  3. 0.0.1 - September 4, 2011 (4.5 KB)

Development Dependencies: