Class: ActiveVlc::Pipeline
- Inherits:
-
Object
- Object
- ActiveVlc::Pipeline
- Includes:
- DSL::Pipeline, PipelineDump
- Defined in:
- lib/activevlc/pipeline.rb
Constant Summary
Constants included from PipelineDump
ActiveVlc::PipelineDump::TAB_WIDTH
Instance Attribute Summary collapse
-
#input ⇒ Object
readonly
Returns the value of attribute input.
-
#sout ⇒ Object
readonly
Returns the value of attribute sout.
Instance Method Summary collapse
- #dump ⇒ Object
- #fragment ⇒ Object
-
#initialize(input_array_or_string = nil, &block) ⇒ Pipeline
constructor
A new instance of Pipeline.
Methods included from PipelineDump
#_dump, #_dump_depth, #_find_in_ancestors
Constructor Details
#initialize(input_array_or_string = nil, &block) ⇒ Pipeline
Returns a new instance of Pipeline.
23 24 25 26 27 28 |
# File 'lib/activevlc/pipeline.rb', line 23 def initialize(input_array_or_string = nil, &block) @input = Stage::Input.new(input_array_or_string) @sout = Stage::Stream.new # SOut = Stream Out ::ActiveVlc::DSL::Stream.new(@sout).instance_eval(&block) if block_given? end |
Instance Attribute Details
#input ⇒ Object (readonly)
Returns the value of attribute input.
21 22 23 |
# File 'lib/activevlc/pipeline.rb', line 21 def input @input end |
#sout ⇒ Object (readonly)
Returns the value of attribute sout.
21 22 23 |
# File 'lib/activevlc/pipeline.rb', line 21 def sout @sout end |
Instance Method Details
#dump ⇒ Object
35 36 37 |
# File 'lib/activevlc/pipeline.rb', line 35 def dump "ActiveVlc: Dumping pipeline internal representation\n" + _dump end |
#fragment ⇒ Object
30 31 32 |
# File 'lib/activevlc/pipeline.rb', line 30 def fragment [@input.fragment, @sout.fragment].join ' ' end |