method

singleton_method_undefined

Importance_1
v1_8_7_72 - Show latest stable - 0 notes - Class: Object
singleton_method_undefined(p1) public

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

produces:

   Undefining one
Show source
Register or log in to add new notes.