Class: ActiveVlc::Stage::Stream
- Defined in:
- lib/activevlc/stage/stream.rb
Direct Known Subclasses
Constant Summary
Constants included from PipelineDump
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #<<(stage) ⇒ Object
- #fragment ⇒ Object
-
#initialize ⇒ Stream
constructor
A new instance of Stream.
Methods inherited from Base
Methods included from PipelineDump
#_dump, #_dump_depth, #_find_in_ancestors
Constructor Details
#initialize ⇒ Stream
Returns a new instance of Stream.
16 17 18 19 |
# File 'lib/activevlc/stage/stream.rb', line 16 def initialize super :sout @chain = [] end |
Instance Method Details
#<<(stage) ⇒ Object
21 22 23 24 25 |
# File 'lib/activevlc/stage/stream.rb', line 21 def <<(stage) @chain.push stage @chain.flatten! self end |
#fragment ⇒ Object
27 28 29 30 31 |
# File 'lib/activevlc/stage/stream.rb', line 27 def fragment return "" if @chain.empty? sout_string = @chain.map{|s| s.fragment}.join ':' ":sout=\"##{sout_string}\"" end |