U:RDoc::AnyMethod[iI"<=>:ETI"String#<=>;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"QComparison---Returns -1, 0, +1 or nil depending on whether +string+ is less ;TI"4than, equal to, or greater than +other_string+.;To:RDoc::Markup::BlankLineo; ; [I":+nil+ is returned if the two values are incomparable.;T@o; ; [I"MIf the strings are of different lengths, and the strings are equal when ;TI"Ncompared up to the shortest length, then the longer string is considered ;TI""greater than the shorter one.;T@o; ; [ I"C<=> is the basis for the methods <, ;TI";<=, >, >=, and ;TI"Hbetween?, included from module Comparable. The method ;TI"*String#== does not use Comparable#==.;T@o:RDoc::Markup::Verbatim; [ I"$"abcdef" <=> "abcde" #=> 1 ;TI"$"abcdef" <=> "abcdef" #=> 0 ;TI"%"abcdef" <=> "abcdefg" #=> -1 ;TI"$"abcdef" <=> "ABCDEF" #=> 1 ;TI"%"abcdef" <=> 1 #=> nil;T: @format0: @fileI" string.c;T:0@omit_headings_from_table_of_contents_below0I"3string <=> other_string -> -1, 0, +1 or nil ;T0[I" (p1);T@%FI" String;TcRDoc::NormalClassI" scanf;T0