recursive-open-struct
recursive-open-struct copied to clipboard
OpenStruct subclass that returns nested hash attributes as RecursiveOpenStructs
Ruby 2.7.1 recursive-open-struct 1.1.3 YAML 3.1.0 Deserializing a ROS from YAML does not work. I think this is because YAML/Psych calls `respond_to_missing?` before the object is fully loaded, see similar...
Freeze does not work: ```ruby > r = RecursiveOpenStruct.new( { hello: 'world', foo: [ {bar: :baz} ] }, recurse_over_arrays: true) > r.freeze > r.delete_field('foo') > r => # > r.bar...
Even when defining the object with recurse_over_arrays set to true, certain ways of filling the data in an array don't work. (the nicer , more object oriented ones) Option A...
Fixes #74. I played around with the first solution I proposed there, i.e. defining all methods during the initialization by using `super`, but there are some behaviors of `RecursiveOpenStruct` that...
# Summary Freezing an instance of `RecursiveOpenStruct` in Ruby 3.1 prevents all access to the object, even read access. # Reproducing the issue ``` o = RecursiveOpenStruct.new({ a: 42 })...
Previously, ROS did not play well when being dump and loaded with Marshal because the options from ROS did not translate through the serialization. This change saves the information through...
Hi there! I believe this could be similar to this open issue: https://github.com/aetherknight/recursive-open-struct/issues/69 but I figure I'd make one for our use case. It seems like we are unable to...
Hi, I just came across your gem as a replacement for `Hashie::Mash` w/ `StrictKeyAccess` enabled. I've been having some odd issues that others have had as well. ROS seems like...