RubyGems Navigation menu

immutable_struct 1.1.1

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.

Versions:

  1. 1.1.1 - May 20, 2013 (5 KB)
  2. 1.1.0 - December 20, 2012 (5 KB)
  3. 1.0.2 - September 25, 2010 (5 KB)
  4. 1.0.0 - March 12, 2010 (6 KB)

Development Dependencies:

Authors:

  • Theo Hultberg, Ben Cates

Owners:

8c21306523b16ba5dd35c3549bf90994

Total downloads 13,277

For this version 4,936

Required Ruby Version: None

Licenses:

N/A

Gemfile:
gem 'immutable_struct', '~> 1.1.1' = Copy to clipboard Copied!

install:
gem install immutable_struct = Copy to clipboard Copied!

Links: