diff options
author | Akshay Birajdar <akshaybirajdar05@gmail.com> | 2022-04-11 12:03:29 +0530 |
---|---|---|
committer | Peter Zhu <peter@peterzhu.ca> | 2022-04-14 08:52:22 -0400 |
commit | 8751c5c2672d1391c73d9dec590063d27bed7e4c (patch) | |
tree | bbc0bdfa83d3ca48c144875855646363de0a9e4e /object.c | |
parent | 9b8ce6d34c49a869ee3fcbd87923a6414396738f (diff) |
[DOC] Enhance documentation for `Module#<` & `Module#>`
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5784
Diffstat (limited to 'object.c')
-rw-r--r-- | object.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1672,7 +1672,9 @@ rb_class_inherited_p(VALUE mod, VALUE arg) * mod < other -> true, false, or nil * * Returns true if <i>mod</i> is a subclass of <i>other</i>. Returns - * <code>nil</code> if there's no relationship between the two. + * <code>false</code> if <i>mod</i> is the same as <i>other</i> + * or <i>mod</i> is an ancestor of <i>other</i>. + * Returns <code>nil</code> 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 <i>mod</i> is an ancestor of <i>other</i>. Returns - * <code>nil</code> if there's no relationship between the two. + * <code>false</code> if <i>mod</i> is the same as <i>other</i> + * or <i>mod</i> is a descendant of <i>other</i>. + * Returns <code>nil</code> if there's no relationship between the two. * (Think of the relationship in terms of the class definition: * "class A < B" implies "B > A".) * |