<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE>Comparable</TITLE> </HEAD> <BODY text="#000000" bgcolor="#FFFFFF"> <A HREF="classes.html#modules">up</A> - <A HREF="Enum.html">next</A> - <A HREF="index.html">index</A> <HR> <dl> <dt> <H1>Comparable</H1> <dd> <P> <code>Comparable</code> is the Mix-in for comparable classes. The including class must provide the basic comparison operator `<code><=></code>'. The other comparing operators are defined in this module using operator `<code><=></code>'. </P> <dt> <h2>Methods:</h2> <dd> <DL COMPACT> <DT> <A NAME="eq"> <CODE>self == other</CODE></A> <DD> <p> Returns true if <code>self</code> and the <var>other</var> have same values. </p> <DT> <A NAME="gt"> <CODE>self > other</CODE></A> <DD> <p> Returns true if <code>self</code> is greater than the <var>other</var>. </p> <DT> <A NAME="ge"> <CODE>self >= <VAR>other</VAR></CODE></A> <DD> <p> Returns true if <code>self</code> is greater than or equals to the <var>other</var>. </p> <DT> <A NAME="lt"> <CODE>self < <VAR>other</VAR></CODE></A> <DD> <p> Returns true if <code>self</code> is less than the <var>other</var>. </p> <DT> <A NAME="le"> <CODE>self <= <VAR>other</VAR></CODE></A> <DD> <p> Returns true if <code>self</code> is less than or equals to the <var>other</var>. </p> <DT> <A NAME="between_p"> <CODE>between?(min, max)</CODE></A> <DD> <p> Returns true if <var>self</var> is in between <var>min</var> and <var>max</var>. </p> </DL> </dl> <HR> <A HREF="classes.html#modules">up</A> - <A HREF="Enum.html">next</A> - <A HREF="index.html">index</A> <P ALIGN=right><A HREF="mailto:matz@netlab.co.jp">matz@netlab.co.jp</A></P> </BODY> </HTML>