File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1104,6 +1104,31 @@ class Module < Object
11041104 #
11051105 private def method_removed : (Symbol method_name) -> untyped
11061106
1107+ # <!--
1108+ # rdoc-file=object.c
1109+ # - method_undefined(method_name)
1110+ # -->
1111+ # Invoked as a callback whenever an instance method is undefined from the
1112+ # receiver.
1113+ #
1114+ # module Chatty
1115+ # def self.method_undefined(method_name)
1116+ # puts "Undefining #{method_name.inspect}"
1117+ # end
1118+ # def self.some_class_method() end
1119+ # def some_instance_method() end
1120+ # class << self
1121+ # undef_method :some_class_method
1122+ # end
1123+ # undef_method :some_instance_method
1124+ # end
1125+ #
1126+ # *produces:*
1127+ #
1128+ # Undefining :some_instance_method
1129+ #
1130+ private def method_undefined : (Symbol method_name) -> untyped
1131+
11071132 # <!--
11081133 # rdoc-file=vm_eval.c
11091134 # - mod.class_eval(string [, filename [, lineno]]) -> obj
You can’t perform that action at this time.
0 commit comments