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/.