Flowdock
method

<=>

Importance_0
v1_8_6_287 - Show latest stable - 0 notes - Class: Date::Infinity
<=>(other) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/date.rb, line 276
    def <=> (other)
      case other
      when Infinity; d <=> other.d
      when Numeric; d
      else
        begin
          l, r = other.coerce(self)
          return l <=> r
        rescue NoMethodError
        end
      end
      nil
    end
Register or log in to add new notes.