From: James Edward Gray II Date: 2009-09-04T00:06:18+09:00 Subject: Re: Data::Dumper for Ruby? On Sep 3, 2009, at 10: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? In Ruby we generally use the standard YAML library for that. If you don't need the content to be human readable, you could also use Marshal, part of Ruby's core. Ruby 1.9 also ships with a JSON library, which is available as a gem for Ruby 1.8. Hope that helps. James Edward Gray II