Package for a subclass of Range, RangeExtd, containing RangeExtd::Infinity and RangeExtd::Nowhere. RangeExtd defines ranges that enable an exclusion of the begin boundary, in addition to the end boundary as in the built-in Range, and accepts open-ended ranges to infinity for either (or both) positive/negative direction. The open-ended boundaries are represented by two constant objects, POSITIVE and NEGATIVE of RangeExtd::Infinity, and they are a generalised Infinity of Float::INFINITY to any Comparable objects, which are in practice similar to built-in beginless/endless Ranges.
Required Ruby Version
>= 2.7
Authors
Masa Sakano
Versions
-
2.0
-
source
- 2.0 source September 08, 2022 (102 KB)
-
-
1.1.1
-
source
- 1.1.1 source January 27, 2020 (60 KB)
-
-
1.1
-
source
- 1.1 source November 01, 2019 (59.5 KB)
-
-
1.0
-
source
- 1.0 source October 30, 2019 (55.5 KB)
-
-
0.4.0
-
source
- 0.4.0 source May 10, 2014 (43.5 KB)
-