-
Name
-
recursive-open-struct
-
Version
-
1.3.0
-
Platform
-
ruby
-
Authors
-
William (B.J.) Snow Orvis
-
Bindir
-
bin
-
Date
-
2024-10-02 00:00:00 UTC
-
Dependencies
-
bundler (>= 0, development)
pry (>= 0, development)
rake (>= 0, development)
rdoc (>= 0, development)
rspec (~> 3.2, development)
simplecov (>= 0, development)
ostruct (>= 0)
-
Description
-
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' }
-
Email
-
aetherknight@gmail.com
-
Extra rdoc files
-
CHANGELOG.md
LICENSE.txt
README.md
-
Files
-
.document
.github/workflows/ruby.yml
.gitignore
.rspec
.travis.yml
AUTHORS.txt
CHANGELOG.md
CONTRIBUTING.md
Gemfile
LICENSE.txt
README.md
Rakefile
lib/recursive-open-struct.rb
lib/recursive_open_struct.rb
lib/recursive_open_struct/debug_inspect.rb
lib/recursive_open_struct/deep_dup.rb
lib/recursive_open_struct/dig.rb
lib/recursive_open_struct/version.rb
recursive-open-struct.gemspec
spec/recursive_open_struct/debug_inspect_spec.rb
spec/recursive_open_struct/indifferent_access_spec.rb
spec/recursive_open_struct/open_struct_behavior_spec.rb
spec/recursive_open_struct/ostruct_2_0_0_spec.rb
spec/recursive_open_struct/ostruct_2_3_0_spec.rb
spec/recursive_open_struct/recursion_and_subclassing_spec.rb
spec/recursive_open_struct/recursion_spec.rb
spec/spec_helper.rb
-
Homepage
-
https://github.com/aetherknight/recursive-open-struct
-
Licenses
-
MIT
-
Require paths
-
lib
-
Required ruby version
-
>= 0
-
Required rubygems version
-
>= 0
-
Rubygems version
-
3.5.9
-
Specification version
-
4
-
Summary
-
OpenStruct subclass that returns nested hash attributes as RecursiveOpenStructs
-
Test files
-
spec/recursive_open_struct/debug_inspect_spec.rb
spec/recursive_open_struct/indifferent_access_spec.rb
spec/recursive_open_struct/open_struct_behavior_spec.rb
spec/recursive_open_struct/ostruct_2_0_0_spec.rb
spec/recursive_open_struct/ostruct_2_3_0_spec.rb
spec/recursive_open_struct/recursion_and_subclassing_spec.rb
spec/recursive_open_struct/recursion_spec.rb
spec/spec_helper.rb
-
Original platform
-
ruby
-
New platform
-
ruby