Given an array of integers, Array#reduce_ranges will return an array with all consecutive integers converted into ranges.
@jacobaweiss
July 14, 2014 12:19am
MIT