From: Peter Vandenabeele Date: 2012-02-14T00:41:21+09:00 Subject: [ruby-core:42558] Re: [ruby-trunk - Feature #1400] Please add a method to enumerate fields in OpenStruct --0023545300904bcd5c04b8da4fab Content-Type: text/plain; charset=UTF-8 On Mon, Feb 13, 2012 at 4:37 PM, Yusuke Endoh wrote: > Hello, > > 2012/2/14 Peter Vandenabeele : > > I use OpenStruct#marshal_dump for this purpose, > > which is a public method and returns a clean hash. > > Cleary, marshal_dump is only intended for Marshal. > I don't know what version policy is applied to marshal format > of a standard library, but I do NOT recommend using marshal_dump > for the purpose. I bet it is not guaranteed. > Many thanks for the clarification. Peter --0023545300904bcd5c04b8da4fab Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Mon, Feb 13, 2012 at 4:37 PM, Yusuke Endoh <mame@tsg.ne.jp>= ; wrote:
Hello,

2012/2/14 Peter Vandenabeele <= peter@vandenabeele.com>:
> I use OpenStruct#marshal_dump for this purpose,
> which is a public method and returns a clean hash.

Cleary, marshal_dump is only intended for Marshal.
I don't know what version policy is applied to marshal format
of a standard library, but I do NOT recommend using marshal_dump
for the purpose. =C2=A0I bet it is not guaranteed.
Many thanks for the clarification.

Peter

--0023545300904bcd5c04b8da4fab--