Website hosting service by Active-Venture.com
 

 Back to Index

up - next - index

Comparable

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 `<=>'.

Methods:

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 other.

self < other

Returns true if self is less than the other.

self <= other

Returns true if self is less than or equals to the other.

between?(min, max)

Returns true if self is in between min and max.


up - next - index

matz@netlab.co.jp

 

  

 

 

2002-2004 Active-Venture.com Website Hosting Service

 
Buy domain name at only $5.95/yr with comprehensive domain hosting services. Domain registration and domain search service from $5.95 Cheap domain name registration and domain transfer service
 

Disclaimer: This 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/