Sha256: d161824498c02ed100b1d445a0bdb77eb7ee8148efb26032dd525e0402d348da
Contents?: true
Size: 421 Bytes
Versions: 1
Compression:
Stored size: 421 Bytes
Contents
require 'stringio' require 'm3u8/version' require 'm3u8/playlist' require 'm3u8/playlist_item' require 'm3u8/segment_item' require 'm3u8/media_item' require 'm3u8/session_data_item' require 'm3u8/reader' require 'm3u8/writer' require 'm3u8/error' module M3u8 def parse_attributes(line) array = line.scan(/([A-z-]+)\s*=\s*("[^"]*"|[^,]*)/) Hash[array.map { |key, value| [key, value.gsub('"', '')] }] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
m3u8-0.5.0 | lib/m3u8.rb |