[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Output of 'ri inherited'

Stephan Kämper

10/29/2004 9:52:00 AM

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. ;-)

Happy rubying

Stephan
1 Answer

Dave Thomas

10/31/2004 5:29:00 AM

0


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

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

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


Cheers

Dave