From: Yusuke Endoh Date: 2012-02-14T00:37:39+09:00 Subject: [ruby-core:42557] Re: [ruby-trunk - Feature #1400] Please add a method to enumerate fields in OpenStruct 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. -- Yusuke Endoh