Class: Axiom::Types::NegativeInfinity
- Defined in:
- lib/axiom/types/support/infinity.rb
Overview
Represent a negative infinite number
Class Method Summary collapse
-
.<=>(_other) ⇒ 0, -1
private
Test the number against negative infinity.
Methods inherited from Infinity
Class Method Details
.<=>(_other) ⇒ 0, -1
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Test the number against negative infinity
89 90 91 92 |
# File 'lib/axiom/types/support/infinity.rb', line 89 def self.<=>(_other) comparison = super -comparison if comparison end |