instance method
BasicObject#singleton_method_undefined
(::Symbol name) -> nil
singleton_method_undefined(symbol)
object.c
View on GitHub ↗
#define rb_obj_singleton_method_undefined rb_obj_dummy1
Invoked as a callback whenever a singleton method is undefined in the receiver.
Example
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:
Example
Undefining one
See also
#singleton_method_removed
#singleton_method_added
also in
4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0