Flowdock
<=>(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.