Repository URL to install this package:
|
Version:
2.2.2-1 ▾
|
U:RDoc::AnyMethod[iI"<=>:ETI"Object#<=>;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"8Returns 0 if +obj+ and +other+ are the same object ;TI"1or <code>obj == other</code>, otherwise nil.;To:RDoc::Markup::BlankLine o; ; [I"UThe <code><=></code> is used by various methods to compare objects, for example ;TI")Enumerable#sort, Enumerable#max etc.;T@o; ; [ I"_Your implementation of <code><=></code> should return one of the following values: -1, 0, ;TI"T1 or nil. -1 means self is smaller than other. 0 means self is equal to other. ;TI"N1 means self is bigger than other. Nil means the two values could not be ;TI"compared.;T@o; ; [I"VWhen you define <code><=></code>, you can include Comparable to gain the methods ;TI"q<code><=</code>, <code><</code>, <code>==</code>, <code>>=</code>, <code>></code> and <code>between?</code>.;T: @fileI" object.c;T:0@omit_headings_from_table_of_contents_below0I"obj <=> other -> 0 or nil ;T0[ I" (p1);T@FI"Object;TcRDoc::NormalClass00