RubyGems Navigation menu

immutable_struct 1.0.2

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.2.0 - March 18, 2016 (6 KB)
  2. 1.1.1 - May 20, 2013 (5 KB)
  3. 1.1.0 - December 20, 2012 (5 KB)
  4. 1.0.2 - September 25, 2010 (5 KB)
  5. 1.0.0 - March 12, 2010 (6 KB)

Development Dependencies (2):

Authors:

  • Theo Hultberg

Owners:

8c21306523b16ba5dd35c3549bf90994

SHA 256 checksum:

e37bef5a48d915dce97e3376b070b5969f6f7337edc39a504d5833672ae9328b

Total downloads 30,254

For this version 6,117

Gemfile:
= Copy to clipboard Copied!

install:
=

Licenses:

N/A

Required Ruby Version: None

Required Rubygems Version: >= 1.3.6

Links: