asciinema.org/app/services/timing_parser.rb

13 lines
193 B
Ruby
Raw Normal View History

class TimingParser
def self.parse(data)
2013-08-13 17:45:36 +00:00
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