Ruby data dumper?

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 


thx :slight_smile:

go to the console: ruby script/console

and type: puts YourObject.to_yaml

require ‘pp’

pp @thing

– Tom M.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs