lib/method_disabling.rb
def disable_method(method_name, message = nil)
      disabled_methods[method_name] ||= DisabledMethod.new(self, method_name, message)
      disabled_methods[method_name].disable!
    end
def disable_method(method_name, message = nil)
      disabled_methods[method_name] ||= DisabledMethod.new(self, method_name, message)
      disabled_methods[method_name].disable!
    end
Disables an instance method.

 @param [Symbol,String]  method_name   The name of the method to disable.
 @param [String]         message       An error message. Defaults to "Class#method is disabled".