Class InfinityClass::Numeric
In: lib/more/facets/infinity.rb
Parent: Object

Methods

finite?   inf?   infinite?   nan?   neginf?   posinf?  

Public Instance methods

[Source]

# File lib/more/facets/infinity.rb, line 161
  def finite?
    not InfinityClass === self
  end
inf?()

Alias for infinite?

[Source]

# File lib/more/facets/infinity.rb, line 165
  def infinite?
    return false if NaN == self
    InfinityClass === self
  end

[Source]

# File lib/more/facets/infinity.rb, line 171
  def nan?
    NaN == self
  end

[Source]

# File lib/more/facets/infinity.rb, line 179
  def neginf?
    NegInf == self
  end

[Source]

# File lib/more/facets/infinity.rb, line 175
  def posinf?
    PosInf == self
  end

[Validate]