Skip to content
instance method

Module#method_undefined

method_undefined(method_name)

Invoked as a callback whenever an instance method is undefined from the receiver.

Example
module Chatty
  def self.method_undefined(method_name)
    puts "Undefining #{method_name.inspect}"
  end
  def self.some_class_method() end
  def some_instance_method() end
  class << self
    undef_method :some_class_method
  end
  undef_method :some_instance_method
end

produces:

Example
Undefining :some_instance_method