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.

Gemfile:
= 複製 已複製

安裝:
=

版本列表:

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

Development 相依性套件 (2):

rspec >= 0
yard >= 0

擁有者:

作者:

  • Theo Hultberg, Ben Cates

SHA 256 checksum:

f99368c0ff16aa23486df1bab8e02415fbd673bf1dc15d1189b3ad94390b6224

總下載次數 87,874

這個版本 26,066

License:

Ruby 版本需求:

RubyGems 版本需求: >= 1.3.6

相關連結: