https://github.com/aetherknight/recursive-open-struct

openstruct-subclass ruby

Last synced: about 1 month ago

Repository metadata:

OpenStruct subclass that returns nested hash attributes as RecursiveOpenStructs


Owner metadata:


Committers metadata

Last synced: about 1 month ago

Total Commits: 194
Total Committers: 28
Avg Commits per committer: 6.929
Development Distribution Score (DDS): 0.335

Commits in past year: 17
Committers in past year: 3
Avg Commits per committer in past year: 5.667
Development Distribution Score (DDS) in past year: 0.118

Name Email Commits
William (B.J.) Snow Orvis a****t@g****m 129
Offirmo o****t@g****m 12
fervic r****o@r****m 11
David Feldman d****n@g****m 6
Kris Dekeyser k****r@l****e 5
Maple Ong m****g@g****m 3
Tom Chapin t****n@g****m 3
Cédric Felizard c****c@f****r 2
Jean Boussier j****r@g****m 2
Sebastian Gaul s****n@m****m 2
Thiago Guimaraes t****r@g****m 2
Edward Betts e****d@4****m 1
Ewoud Kohl van Wijngaarden e****d@k****l 1
Ben Langfeld b****n@l****e 1
Beni Cherniavsky-Paskin c****n@r****m 1
Federico Aloi f****i@g****m 1
Hartley McGuire s****l@g****m 1
Igor Victor g****a@y****u 1
Ilya Umanets i****s@s****m 1
Joe Rafaniello j****e@r****m 1
Matt Culpepper m****t@c****o 1
Matthew O'Riordan m****n@g****m 1
Pedro Sena s****o@g****m 1
Peter Yeremenko p****o@g****m 1
Pirate Praveen p****n@d****g 1
Richard Degenne r****b@g****m 1
Richard Degenne r****e@g****m 1
Victor Guzman v****n@r****m 1

Issue and Pull Request metadata

Last synced: about 1 month ago


Package metadata

rubygems: recursive-open-struct

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' }

  • Homepage: https://github.com/aetherknight/recursive-open-struct
  • Documentation: http://www.rubydoc.info/gems/recursive-open-struct/
  • Licenses: MIT
  • Latest release: 1.1.3 (published about 4 years ago)
  • Last Synced: 2024-11-10T21:35:11.227Z (about 1 month ago)
  • Versions: 32
  • Dependent Packages: 151
  • Dependent Repositories: 1,799
  • Downloads: 51,688,966 Total
  • Docker Downloads: 1,488,865,852
  • Rankings:
    • Docker downloads count: 0.087%
    • Dependent packages count: 0.227%
    • Downloads: 0.447%
    • Dependent repos count: 0.735%
    • Average: 1.439%
    • Stargazers count: 3.485%
    • Forks count: 3.655%
  • Maintainers (2)
rubygems: recursive-open-struct-sd

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' } > This is a fork of the original recursive-open-struct > to include a fix for https://github.com/aetherknight/recursive-open-struct/issues/46

  • Homepage: http://github.com/aetherknight/recursive-open-struct
  • Documentation: http://www.rubydoc.info/gems/recursive-open-struct-sd/
  • Licenses: MIT
  • Latest release: 1.0.2 (published about 8 years ago)
  • Last Synced: 2024-11-10T21:35:10.120Z (about 1 month ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 3,037 Total
  • Rankings:
    • Stargazers count: 3.212%
    • Forks count: 3.308%
    • Dependent packages count: 15.706%
    • Average: 31.251%
    • Dependent repos count: 46.782%
    • Downloads: 87.247%
  • Maintainers (2)

Dependencies

recursive-open-struct.gemspec rubygems
  • bundler >= 0 development
  • pry >= 0 development
  • rake >= 0 development
  • rdoc >= 0 development
  • rspec ~> 3.2 development
  • simplecov >= 0 development
.github/workflows/ruby.yml actions
  • actions/checkout v4 composite
  • ruby/setup-ruby 943103cae7d3f1bb1e4951d5fcc7928b40e4b742 composite
Gemfile rubygems