diff options
| author | Burdette Lamar <BurdetteLamar@Yahoo.com> | 2025-12-18 18:21:00 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-18 19:21:00 -0500 |
| commit | b14f2f0116e6eccbfff57edae1283b3c53247752 (patch) | |
| tree | fab99ea94f72f9160e60f87171642dd0455107fc /object.c | |
| parent | 084b916a5b9da0367b077add3203b924e868970b (diff) | |
[DOC] Harmonize lt methods
Diffstat (limited to 'object.c')
| -rw-r--r-- | object.c | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -1948,14 +1948,15 @@ rb_class_inherited_p(VALUE mod, VALUE arg) /* * call-seq: - * mod < other -> true, false, or nil + * self < other -> true, false, or nil * - * Returns true if <i>mod</i> is a subclass of <i>other</i>. Returns - * <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".) + * Returns whether +self+ is a subclass of +other+, + * or +nil+ if there is no relationship between the two: + * + * Float < Numeric # => true + * Numeric < Float # => false + * Float < Float # => false + * Float < Hash # => nil * */ |
