Back to Index
Comparable is the Mix-in for comparable classes. The
including class must provide the basic comparison operator
`<=>'. The other comparing operators are defined in this
module using operator `<=>'.
self == other
Returns true if self and the other have same values.
self > other
Returns true if self is greater than the other.
self >= other
Returns true if self is greater than or equals to the
self < other
Returns true if self is less than the other.
self <= other
Returns true if self is less than or equals to the
Returns true if self is in between min and max.
© 2002-2004 Active-Venture.com
documentation is provided only for the benefits of our website hosting customers.
For authoritative source of the documentation, please refer to http://www.ruby-doc.org/docs/