- From: <
>
- To:
- Subject: [chef] Re: Re: converting attributes to ruby hash
- Date: Wed, 6 Feb 2013 16:03:39 -0800 (PST)
Hi Seth,
Thanks for the help! Using [] notation rather than dot notation seems to have
fixed the problem with config.to_json generating unparsable json. I still have
two questions:
1) is `JSON.parse(config.to_json)` the correct way to get a ruby hash out of
an
attribute? should `to_hash` accept a parameter for recursion? what's the point
of `.to_hash` anyway if it doesn't convert attributes into a hash…?
2) is dot notation deprecated?
Thanks again,
--Igor
- [chef] Re: Re: converting attributes to ruby hash, igor.serebryany, 02/06/2013
Archive powered by MHonArc 2.6.16.