Forum: Ruby on Rails ruby data dumper?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Dave C. (Guest)
on 2006-03-15 04:17
Coming from the perl world to ruby, I was wondering if there was
anything like data::dumper perl module for ruby/rails?

    @thing.inspect or dump(@thing) works, but isn't formatted all as
nice.

thx :-)
Roberto S. (Guest)
on 2006-03-15 04:38
(Received via mailing list)
go to the console: ruby script/console

and type: puts YourObject.to_yaml
Tom M. (Guest)
on 2006-03-15 06:25
(Received via mailing list)
require 'pp'

pp @thing

--
-- Tom M.
This topic is locked and can not be replied to.