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 :-)
on 2006-03-15 04:17
on 2006-03-15 04:38
go to the console: ruby script/console and type: puts YourObject.to_yaml
on 2006-03-15 06:25
require 'pp' pp @thing -- -- Tom M.