asciinema.org/app/services/timing_parser.rb
2013-09-23 21:21:07 +02:00

13 lines
193 B
Ruby

class TimingParser
def self.parse(data)
data.lines.map { |line| parse_line(line) }
end
def self.parse_line(line)
delay, size = line.split
[delay.to_f, size.to_i]
end
end