<=>

float real รข -1, 0, +1 or nil
Instance Public methods

Returns -1, 0, +1 or nil depending on whether float is less than, equal to, or greater than real. This is the basis for the tests in Comparable.

The result of NaN <=> NaN is undefined, so the implementation-dependent value is returned.

nil is returned if the two values are incomparable.

doc_ruby_on_rails
2015-04-07 01:36:44
Comments
Leave a Comment

Please login to continue.