lib/m3u8/byte_range.rb in m3u8-0.7.1 vs lib/m3u8/byte_range.rb in m3u8-0.8.0

- old
+ new

@@ -9,14 +9,14 @@ instance_variable_set("@#{key}", value) end end def self.parse(text) - values = text.split '@' + values = text.split('@') length_value = values[0].to_i start_value = values[1].to_i unless values[1].nil? options = { length: length_value, start: start_value } - ByteRange.new options + ByteRange.new(options) end def to_s "#{length}#{start_format}" end