In the most general case there is not much you can do. While you can
list all methods on an object, you can't tell ahead of time whether
these are just accessors or methods that do stuff. Methods might also
be added only when needed (eg activerecord objects).
You can dump the instance variables from the object, but it may not
always be obvious which ones are important and which ones not.
If you can make the assumption that all your object share some
property (eg all descend from some base class etc...) then your life
will be easier
Fred (PS this is a pure ruby thing - no rails magic happening here)