string other_string â -1, 0, +1 or nil
Instance Public methods
ComparisonâReturns -1, 0, +1 or nil depending on whether
string is less than, equal to, or greater than
other_string.
nil is returned if the two values are incomparable.
If the strings are of different lengths, and the strings are equal when
compared up to the shortest length, then the longer string is considered
greater than the shorter one.
<=> is the basis for the methods <,
<=, >, >=, and
betwe