From 8751c5c2672d1391c73d9dec590063d27bed7e4c Mon Sep 17 00:00:00 2001 From: Akshay Birajdar Date: Mon, 11 Apr 2022 12:03:29 +0530 Subject: [DOC] Enhance documentation for `Module#<` & `Module#>` --- object.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'object.c') diff --git a/object.c b/object.c index 4e79a6ac7a..3c0e41dcee 100644 --- a/object.c +++ b/object.c @@ -1672,7 +1672,9 @@ rb_class_inherited_p(VALUE mod, VALUE arg) * mod < other -> true, false, or nil * * Returns true if mod is a subclass of other. Returns - * nil if there's no relationship between the two. + * false if mod is the same as other + * or mod is an ancestor of other. + * Returns nil if there's no relationship between the two. * (Think of the relationship in terms of the class definition: * "class A < B" implies "A < B".) * @@ -1713,7 +1715,9 @@ rb_mod_ge(VALUE mod, VALUE arg) * mod > other -> true, false, or nil * * Returns true if mod is an ancestor of other. Returns - * nil if there's no relationship between the two. + * false if mod is the same as other + * or mod is a descendant of other. + * Returns nil if there's no relationship between the two. * (Think of the relationship in terms of the class definition: * "class A < B" implies "B > A".) * -- cgit v1.2.1