Module: FatCore

Defined in:
lib/fat_core/date.rb,
lib/fat_core/nil.rb,
lib/fat_core/hash.rb,
lib/fat_core/array.rb,
lib/fat_core/range.rb,
lib/fat_core/string.rb,
lib/fat_core/symbol.rb,
lib/fat_core/numeric.rb,
lib/fat_core/version.rb,
lib/fat_core/bigdecimal.rb
more...

Overview

FatCore extends the Range class with methods that

  1. provide some set operations operations on Ranges, union, intersection, and difference,
  2. test for overlapping and contiguity between Ranges,
  3. test for whether one Range is a subset or superset of another,
  4. join contiguous Ranges,
  5. find whether a set of Ranges spans a large range, and if not, to return a set of Ranges that represent gaps in the coverage or overlaps in coverage,
  6. provide a definition for sorting Ranges based on sorting by the min values and sizes of the Ranges.

Defined Under Namespace

Modules: Array, BigDecimal, Date, Hash, NilClass, Numeric, Range, String, Symbol

Constant Summary collapse

MAJOR =
4
MINOR =
6
PATCH =
1
VERSION =

FatCore version number

[MAJOR, MINOR, PATCH].compact.join('.')