diff options
| author | Peter Zhu <peter@peterzhu.ca> | 2026-01-09 17:48:27 -0500 |
|---|---|---|
| committer | Peter Zhu <peter@peterzhu.ca> | 2026-01-10 09:31:35 -0500 |
| commit | 98c414a678c2497dc522abf3802b2f78bfc856c4 (patch) | |
| tree | 3579ae95c91f2b3e146eae3addc5fcfc304bec1f /object.c | |
| parent | 0b69f7fa347e3aadb7998e3f33257e6c83787c8b (diff) | |
[DOC] Improve docs for Module#>
Diffstat (limited to 'object.c')
| -rw-r--r-- | object.c | 25 |
1 files changed, 14 insertions, 11 deletions
@@ -2011,20 +2011,23 @@ rb_mod_ge(VALUE mod, VALUE arg) * call-seq: * self > other -> true, false, or nil * - * If +self+ is a class, returns +true+ if +self+ is a superclass of +other+, - * returns +false+ if +self+ is the same as +other+ or if +self+ is a subclass - * of +other+, and returns +nil+ if there are no relationship between the two: + * Returns +true+ if +self+ is an ancestor of +other+ + * (+self+ is a superclass of +other+ or +self+ is included in +other+): * - * Numeric > Float # => true - * Float > Numeric # => false - * Float > Float # => false - * Float > Hash # => nil + * Numeric > Float # => true + * Enumerable > Array # => true * - * If +self+ is a module, returns +true+ if +other+ includes +self+, - * returns +false+ if +self+ is the same as +other+ or if +self+ includes - * +other+, and returns +nil+ if there are no relationship between the two: + * Returns +false+ if +self+ is a descendant of +other+ + * (+self+ is a subclass of +other+ or +self+ includes +other+) or + * if +self+ is the same as +other+: * - * Enumerable > Array # => true + * Float > Numeric # => false + * Array > Enumerable # => false + * Float > Float # => false + * + * Returns +nil+ if there is no relationship between the two: + * + * Float > Hash # => nil * Enumerable > String # => nil * */ |
