From: ser@... (Sean Russell) Date: 2004-04-25T03:29:05+09:00 Subject: Re: rexml: how to get element type? gabriele renzi wrote in message news:... > >> maybe you want .name() ? > > > >Thanks, that worked. > > > >name() does not show up in my RDoc (the version that came with my rexml > >install).. Wonder why? name() is hardly likely to be a recent addition! name() is a method that Element inherits from Namespace. I hate to pass the buck, but this is a limitation in rdoc that it doesn't include methods inherited from other classes. If you want the API documentation for name(), look in the Namespace module. In fact, Element inherits from Parent and Child, and there are methods in those classes that are not included in the rdoc-generated API documentation for Element, either. > Btw could it be somehow possible to have a smaller string > repretsentation for rexml objects ? they screw up IRB work ;) Can you give me an example of what you'd like to see? 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 --- SER