RubyGems Navigation menu

fancy-open-struct 0.1.2

FancyOpenStruct is a subclass of OpenStruct, and is a variant of RecursiveOpenStruct. It differs from OpenStruct in that it allows nested hashes to be treated in a recursive fashion, and it also provides Hash methods for getting and setting values. For example: fos = FancyOpenStruct.new({ :a => { :b => 'c' } }) fos.a.b # 'c' fos.foo = 'bar' fos[:foo] # 'bar' fos.length # 2 Also, nested hashes can still be accessed as hashes: fos.a_as_a_hash # { :b => 'c' }

Gemfile:
=

安裝:
=

版本列表:

  1. 0.4.0 May 29, 2014 (11.5 KB)
  2. 0.3.0 May 29, 2014 (11.0 KB)
  3. 0.2.0 May 29, 2014 (11.0 KB)
  4. 0.1.6 May 27, 2014 (10.5 KB)
  5. 0.1.5 May 27, 2014 (10.5 KB)
  6. 0.1.2 May 26, 2014 (10.0 KB)
顯示所有版本(共 10)

Development 相依性套件 (4):

bundler >= 0
pry >= 0
rdoc >= 0
rspec >= 0

擁有者:

作者:

  • Thomas H. Chapin

SHA 256 總和檢查碼:

=

總下載次數 29,339

這個版本 2,768

版本发布:

授權:

MIT

Ruby 版本需求: >= 0

相關連結: