From: gabriele renzi Date: 2004-04-25T19:44:03+09:00 Subject: Re: rexml: how to get element type? il 24 Apr 2004 11:25:42 -0700, ser@germane-software.com (Sean Russell) ha scritto:: > >Can you give me an example of what you'd like to see? hard to tell, I hoped you could answer with something like "well I have this little routine.." Btw, I believe that the main thing is not to let the representation to recur over the whole document. The representation for Document.new("").root goes over then lines in irb (78 columns term), that makes it little useful. It would be nice to avoid to show the child of the child, replacing it with a simple '..' Maybe it could be reasonable to avoid showing @parent, and avoiding showing attributes like @prefix @namespace or @children or @atributes when they are empty ('' or [] or {}) Notice that I'd like this cause I'm thinking in irb. Maybe people make use of the actual result from inspect, and I'm plain wrong. >By the way, I find the following to be useful when looking for >methods; it is almost always more readable that #inspect :-) > > obj.methods.sort I'll add a puts on top of it to show them one per line :)