class Axiom::Types::NegativeInfinity

Represent a negative infinite number

Public Instance Methods

<=>(_other) click to toggle source

Test the number against negative infinity

@param [Numeric, Infinity] _other

@return [0]

returned if the other object is negative infinity

@return [-1]

returned if the other object is not negative infinity

@api private

Calls superclass method Axiom::Types::Infinity#<=>
# File lib/axiom/types/support/infinity.rb, line 86
def <=>(_other)
  comparison = super
  -comparison if comparison
end