Output of 'ri inherited'

Hi Rubyists,

When I do this

     >ri inherited

I get that (which is not exactly what I expected):

---- output starts here ----
-------------------------------------------------------- Class#inherited
      singleton_method_undefined(symbol)

···

------------------------------------------------------------------------
      Document-method: singleton-method-undefined
       Invoked as a callback whenever a singleton method is undefined in
       the receiver.

          module Chatty
            def Chatty.singleton_method_undefined(id)
              puts "Undefining #{id.id2name}"
            end

            def Chatty.one() end

            class << self
               undef_method(:one)
            end
          end

       <em>produces:</em>

          Undefining one
---- output ends here ----

Am I just not getting the obvious?
I think I better have a break now. :wink:

Happy rubying

Stephan

I believe that's an old ri/ruby. It seems to work OK in the latest CVS.

Cheers

Dave

···

On Oct 29, 2004, at 4:53, Stephan Kämper wrote:

    >ri inherited

I get that (which is not exactly what I expected):