[DOC] Enhance documentation for `Module#<` & `Module#>`

This commit is contained in:
Akshay Birajdar 2022-04-11 12:03:29 +05:30 committed by Peter Zhu
parent 9b8ce6d34c
commit 8751c5c267
Notes: git 2022-04-14 21:52:41 +09:00
1 changed files with 6 additions and 2 deletions

View File

@ -1672,7 +1672,9 @@ rb_class_inherited_p(VALUE mod, VALUE arg)
* mod < other -> true, false, or nil * mod < other -> true, false, or nil
* *
* Returns true if <i>mod</i> is a subclass of <i>other</i>. Returns * 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: * (Think of the relationship in terms of the class definition:
* "class A < B" implies "A < B".) * "class A < B" implies "A < B".)
* *
@ -1713,7 +1715,9 @@ rb_mod_ge(VALUE mod, VALUE arg)
* mod > other -> true, false, or nil * mod > other -> true, false, or nil
* *
* Returns true if <i>mod</i> is an ancestor of <i>other</i>. Returns * 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: * (Think of the relationship in terms of the class definition:
* "class A < B" implies "B > A".) * "class A < B" implies "B > A".)
* *