Sophie

Sophie

distrib > CentOS > 5 > x86_64 > by-pkgid > 6d36cb72372cfb7c8fee63f4d6dc0530 > files > 8

ruby-docs-1.8.5-31.el5_9.x86_64.rpm

<!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>&#60;=&#62;</code>'.  The other comparing operators are defined in this 
module using operator `<code>&#60;=&#62;</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 &#62; 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 &#62;= <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 &#60; <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 &#60;= <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>