core/method.rbs in rbs-2.8.0 vs core/method.rbs in rbs-2.8.1
- old
+ new
@@ -218,10 +218,18 @@
# <!--
# rdoc-file=proc.c
# - meth.owner -> class_or_module
# -->
- # Returns the class or module that defines the method. See also Method#receiver.
+ # Returns the class or module on which this method is defined. In other words,
+ #
+ # meth.owner.instance_methods(false).include?(meth.name) # => true
+ #
+ # holds as long as the method is not removed/undefined/replaced, (with
+ # private_instance_methods instead of instance_methods if the method is
+ # private).
+ #
+ # See also Method#receiver.
#
# (1..3).method(:map).owner #=> Enumerable
#
def owner: () -> (Class | Module)