asciinema.org/app/parsers/timing_parser.rb
2013-08-13 19:52:54 +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