Module: Unbounded

Extended by:
Utility
Defined in:
lib/unbounded.rb,
lib/unbounded/range.rb,
lib/unbounded/formats.rb,
lib/unbounded/utility.rb,
lib/unbounded/version.rb,
lib/unbounded/range_extension.rb,
lib/unbounded/infinite_enumerator.rb

Overview

A library for working with unbounded (infinite) ranges, with support for PostgreSQL-style notation.

Defined Under Namespace

Modules: Formats, RangeExtension, Utility Classes: InfiniteEnumerator, Range

Constant Summary collapse

INFINITY =

Infinity

1.0 / 0.0
NINFINITY =

Negative infinity

-INFINITY
VERSION =

Current library version.

Returns:

  • (Gem::Version)
Gem::Version.new("0.0.3")

Class Method Summary collapse

Methods included from Utility

match_to_hash, numerify

Class Method Details

.range(*args, &block) ⇒ Unbounded::Range

Returns:



32
33
34
# File 'lib/unbounded.rb', line 32

def Unbounded.range(*args, &block)
  Unbounded::Range.new(*args, &block)
end