RubyGems Navigation menu

attr_immutable 0.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 accessed in any other way.)

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)

Authors:

  • Mark Menard

Owners:

D4cd33ef188f9958c3acd8437d6503f2

Sha 256 checksum:

fa4d2920e851639d3345d83e2d425b18aeb9b43835654f0679bb2210237d9af0

Total downloads 6,749

For this version 1,899

Required Ruby Version: None

Licenses:

N/A

Gemfile:
= Copy to clipboard Copied!

install:
= Copy to clipboard Copied!

Links: