From: Gregory Brown Date: 2009-09-04T00:04:30+09:00 Subject: Re: Data::Dumper for Ruby? On Thu, Sep 3, 2009 at 11:00 AM, Josef Wolf wrote: > Hello, > > I am new to Ruby and am about to start my first application that exceeds the > size of gello.rb ;-) > > One of the first things I am missing is something like perl's Data::Dumper > module.  This module is able to take a (nested) data structure and dump it > in perl syntax. > > Anybody knows of a similar thing for ruby? Do you actually need the syntax preserved, or are you just trying to serialize data? If the latter, use Marshal or the YAML std library, or consider JSON (standard in 1.9, a gem in 1.8) -greg