Closed jromigh closed 9 years ago
Can confirm this, also just got bitten by it.
0.6.2:
RecursiveOpenStruct.new('foo' => 1).foo
=> nil
0.6.1:
RecursiveOpenStruct.new('foo' => 1).foo
=> 1
Thanks for the fix @thiagogsr.
You are welcome On Apr 11, 2015 10:11 AM, "Gerry" notifications@github.com wrote:
Thanks for the fix @thiagogsr https://github.com/thiagogsr.
— Reply to this email directly or view it on GitHub https://github.com/aetherknight/recursive-open-struct/issues/28#issuecomment-91843661 .
Merged #30 into master, I will cut a patch release soon.
Version 0.6.3 should now be on rubygems, and it should contain the fix in #30.
In v0.6.2, if a hash where keys are set as strings (as opposed to symbols) is passed into recursive open struct, all values retrieved are returned as nil.
Here is my code:
In v0.6.2, this is what I get in console:
In v0.6.1, this is what I get in console: