RubyGems Navigation menu

immutable_struct 1.2.0

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.

Gemfile:
=

installation:
=

Versions:

  1. 1.2.0 March 18, 2016 (6 ko)
  2. 1.1.1 May 20, 2013 (5 ko)
  3. 1.1.0 December 20, 2012 (5 ko)
  4. 1.0.2 September 26, 2010 (5 ko)
  5. 1.0.0 July 06, 2010 (6 ko)

Dépendances de Development (2):

rspec >= 0
yard >= 0

Propriétaires:

Auteurs:

  • Theo Hultberg, Ben Cates

Total de contrôle SHA 256:

=

Total de téléchargements 95 561

Pour cette version 53 366

Version publiée:

License:

aucune

Version de Ruby requise: >= 0

Required Rubygems Version: >= 1.3.6

Liens: