Class: M3u8::Reader
Overview
Reader provides parsing of m3u8 playlists
Constant Summary
Constants included from M3u8
Instance Attribute Summary collapse
-
#item ⇒ Object
Returns the value of attribute item.
-
#master ⇒ Object
Returns the value of attribute master.
-
#open ⇒ Object
Returns the value of attribute open.
-
#playlist ⇒ Object
Returns the value of attribute playlist.
-
#tags ⇒ Object
Returns the value of attribute tags.
Instance Method Summary collapse
-
#initialize ⇒ Reader
constructor
A new instance of Reader.
- #read(input) ⇒ Object
Methods included from M3u8
#intialize_with_byterange, #parse_attributes, #parse_yes_no
Constructor Details
#initialize ⇒ Reader
Returns a new instance of Reader.
7 8 9 10 11 12 |
# File 'lib/m3u8/reader.rb', line 7 def initialize(*) @tags = [, , , ].inject(:merge) end |
Instance Attribute Details
#item ⇒ Object
Returns the value of attribute item.
5 6 7 |
# File 'lib/m3u8/reader.rb', line 5 def item @item end |
#master ⇒ Object
Returns the value of attribute master.
5 6 7 |
# File 'lib/m3u8/reader.rb', line 5 def master @master end |
#open ⇒ Object
Returns the value of attribute open.
5 6 7 |
# File 'lib/m3u8/reader.rb', line 5 def open @open end |
#playlist ⇒ Object
Returns the value of attribute playlist.
5 6 7 |
# File 'lib/m3u8/reader.rb', line 5 def playlist @playlist end |
#tags ⇒ Object
Returns the value of attribute tags.
5 6 7 |
# File 'lib/m3u8/reader.rb', line 5 def @tags end |