You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
asciinema.org/app/parsers/timing_parser.rb

11 lines
152 B
Ruby

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