Is there any standard package to dump to ruby data structures

Yes, I can use Marshal.
Thank you guys.

···

On Apr 4, 4:24 pm, Jano Svitok <jan.svi...@gmail.com> wrote:

On Fri, Apr 4, 2008 at 1:10 PM, adm <avinash.ma...@gmail.com> wrote:
> Is there any standard package to dump ruby data structures into a
> string/stream? which can be eval'd back in ruby script. something like
> perl's Data::Dumper?

Marshal - faster; shorter binary data
YAML - slower, human readable/editable data

adm wrote:

Is there any standard package to dump ruby data structures into a
string/stream? which can be eval'd back in ruby script. something like
perl's Data::Dumper?

Marshal - faster; shorter binary data

Ruby-specific format

YAML - slower, human readable/editable data

Language-independent format

···

On Apr 4, 4:24 pm, Jano Svitok <jan.svi...@gmail.com> wrote:

On Fri, Apr 4, 2008 at 1:10 PM, adm <avinash.ma...@gmail.com> wrote: