From: Dhruva Sagar on
[Note: parts of this message were removed to make it a legal post.]

require 'pp'
pp object_reference

On Wed, May 19, 2010 at 14:10, Jian Lin <blueskybreeze(a)gmail.com> wrote:

> When it is RoR, we can use ActiveRecord's attributes method to get a
> hash for a record's column name and values. How about if it is just an
> object in Ruby, and we want to print out all instance variables to
> debug, while the inspect() method doesn't print everything out, is there
> a way to print out all instance variables (for any object)
> automatically, for example, to debug the code? thanks.
> --
> Posted via http://www.ruby-forum.com/.
>
>


--

Thanks & Regards,
Dhruva Sagar.