Class: ActiveVlc::Stage::Duplicate
- Defined in:
- lib/activevlc/stage/duplicate.rb
Constant Summary
Constants included from PipelineDump
Instance Attribute Summary collapse
-
#stages ⇒ Object
readonly
Returns the value of attribute stages.
Attributes inherited from Base
Attributes included from Parametric
Instance Method Summary collapse
- #<<(stage) ⇒ Object
- #fragment ⇒ Object
-
#initialize ⇒ Duplicate
constructor
A new instance of Duplicate.
Methods inherited from Base
Methods included from Parametric
#has_missing_parameter?, #visit
Methods included from PipelineDump
#_dump, #_dump_depth, #_find_in_ancestors
Constructor Details
#initialize ⇒ Duplicate
Returns a new instance of Duplicate.
20 21 22 23 |
# File 'lib/activevlc/stage/duplicate.rb', line 20 def initialize() super(:duplicate) @stages = [] end |
Instance Attribute Details
#stages ⇒ Object (readonly)
Returns the value of attribute stages.
16 17 18 |
# File 'lib/activevlc/stage/duplicate.rb', line 16 def stages @stages end |
Instance Method Details
#<<(stage) ⇒ Object
25 26 27 28 29 |
# File 'lib/activevlc/stage/duplicate.rb', line 25 def <<(stage) @stages.push stage @stages.flatten! self end |
#fragment ⇒ Object
31 32 33 34 35 36 |
# File 'lib/activevlc/stage/duplicate.rb', line 31 def fragment f = @stages.map do |s| "dst=#{s.fragment}" end.join ', ' "duplicate{#{f}}" end |