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