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 obj == other, otherwise nil.;To:RDoc::Markup::BlankLineo; ; [I"UThe <=> is used by various methods to compare objects, for example ;TI")Enumerable#sort, Enumerable#max etc.;T@o; ; [ I"_Your implementation of <=> 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 <=>, you can include Comparable to gain the methods ;TI"q<=, <, ==, >=, > and between?.;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