--0050450167750c11960486ee74a1
Content-Type: text/plain; charset=UTF-8

require 'pp'
pp object_reference

On Wed, May 19, 2010 at 14:10, Jian Lin <blueskybreeze / 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.

--0050450167750c11960486ee74a1--