RubyGems Navigation menu

recursive-open-struct 1.2.2

RecursiveOpenStruct is a subclass of OpenStruct. It differs from OpenStruct in that it allows nested hashes to be treated in a recursive fashion. For example: ros = RecursiveOpenStruct.new({ :a => { :b => 'c' } }) ros.a.b # 'c' Also, nested hashes can still be accessed as hashes: ros.a_as_a_hash # { :b => 'c' }

Gemfile:
= 复制到剪贴板 已复制!

安装:
=

版本列表:

  1. 1.2.2 - June 19, 2024 (21.5 KB)
  2. 1.2.1 - May 28, 2024 (21.0 KB)
  3. 1.1.3 - October 16, 2020 (20.5 KB)
  4. 1.1.2 - June 21, 2020 (20.0 KB)
  5. 1.1.1 - March 11, 2020 (20.0 KB)
显示所有版本 (共 29 个)

Development 依赖 (6):

bundler >= 0
pry >= 0
rake >= 0
rdoc >= 0
rspec ~> 3.2
simplecov >= 0

业主:

推送:

作者:

  • William (B.J.) Snow Orvis

SHA 256 校验和:

= 复制到剪贴板 已复制!

下载总量 46,071,655

这个版本 5,611

许可:

MIT

需要的 Ruby 版本: >= 0

链接: