diff options
author | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-28 04:50:09 +0000 |
---|---|---|
committer | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-28 04:50:09 +0000 |
commit | 3643ccb17ac5e3bb16fc63fb21b3087b3aaf5023 (patch) | |
tree | 219b8d908a1073ef949ec36cab14ac4874cf4bd0 /compar.c | |
parent | 44da447c16f637c5e662fb20437af0d4f6aca5e8 (diff) | |
download | ruby-3643ccb17ac5e3bb16fc63fb21b3087b3aaf5023.tar.gz ruby-3643ccb17ac5e3bb16fc63fb21b3087b3aaf5023.tar.xz ruby-3643ccb17ac5e3bb16fc63fb21b3087b3aaf5023.zip |
* string.c: rdoc for <=>, casecmp
* bignum.c: rdoc for <=>
* file.c: ditto
* time.c: ditto
* compar.c: rdoc
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compar.c')
-rw-r--r-- | compar.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -163,7 +163,9 @@ cmp_between(VALUE x, VALUE min, VALUE max) * may be ordered. The class must define the <code><=></code> operator, * which compares the receiver against another object, returning -1, 0, * or +1 depending on whether the receiver is less than, equal to, or - * greater than the other object. <code>Comparable</code> uses + * greater than the other object. If the other object is not comparable + * then the <code><=></code> operator should return nil. + * <code>Comparable</code> uses * <code><=></code> to implement the conventional comparison operators * (<code><</code>, <code><=</code>, <code>==</code>, <code>>=</code>, * and <code>></code>) and the method <code>between?</code>. |