class Spicy::Header

Public Class Methods

cumulative(f) click to toggle source
# File lib/header.rb, line 10
def self.cumulative(f)
  header = read(f)
  min = header.min_length.to_i
  max = min + header.cumulative.count - 1
  Hash[(min..max).zip(header.cumulative.to_a.map(&:to_i))]
end