Class: ActiveVlc::Pipeline
- Inherits:
-
Object
- Object
- ActiveVlc::Pipeline
- Includes:
- DSL::Pipeline, Parametric, 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.
Attributes included from Parametric
Instance Method Summary collapse
- #dump ⇒ Object
- #fragment ⇒ Object
- #has_missing_parameter? ⇒ Boolean
-
#initialize(input_array_or_string = nil, &block) ⇒ Pipeline
constructor
A new instance of Pipeline.
- #visit(params) ⇒ Object (also: #params)
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.
24 25 26 27 28 29 30 |
# File 'lib/activevlc/pipeline.rb', line 24 def initialize(input_array_or_string = nil, &block) super() @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.
22 23 24 |
# File 'lib/activevlc/pipeline.rb', line 22 def input @input end |
#sout ⇒ Object (readonly)
Returns the value of attribute sout.
22 23 24 |
# File 'lib/activevlc/pipeline.rb', line 22 def sout @sout end |
Instance Method Details
#dump ⇒ Object
46 47 48 |
# File 'lib/activevlc/pipeline.rb', line 46 def dump "ActiveVlc: Dumping pipeline internal representation\n" + _dump end |
#fragment ⇒ Object
32 33 34 |
# File 'lib/activevlc/pipeline.rb', line 32 def fragment [@input.fragment, @sout.fragment].join ' ' end |
#has_missing_parameter? ⇒ Boolean
41 42 43 |
# File 'lib/activevlc/pipeline.rb', line 41 def has_missing_parameter? @sout.has_missing_parameter? end |
#visit(params) ⇒ Object Also known as: params
36 37 38 39 |
# File 'lib/activevlc/pipeline.rb', line 36 def visit(params) @parameters.merge!(params) @sout.visit(@parameters) end |