Module: ActiveVlc::Parametric
- Extended by:
- ActiveSupport::Concern
- Included in:
- Pipeline, Stage::Base
- Defined in:
- lib/activevlc/parameters/parametric.rb
Instance Attribute Summary collapse
-
#parameters ⇒ Object
readonly
Parameters represents named parameters used to configure and reuse ActiveVlc’s pipeline.
Instance Method Summary collapse
- #has_missing_parameter? ⇒ Boolean
- #initialize ⇒ Object
-
#visit(params = {}) ⇒ Object
Apply named parameters to this Stage and to all the sub-Stages.
Instance Attribute Details
#parameters ⇒ Object (readonly)
Parameters represents named parameters used to configure and reuse ActiveVlc’s pipeline
10 11 12 |
# File 'lib/activevlc/parameters/parametric.rb', line 10 def parameters @parameters end |
Instance Method Details
#has_missing_parameter? ⇒ Boolean
21 22 23 |
# File 'lib/activevlc/parameters/parametric.rb', line 21 def has_missing_parameter? @parameters.reduce(false) { |accu, duple| accu or not duple[1].set?} end |
#initialize ⇒ Object
12 13 14 |
# File 'lib/activevlc/parameters/parametric.rb', line 12 def initialize @parameters = ParameterSet.new end |
#visit(params = {}) ⇒ Object
Apply named parameters to this Stage and to all the sub-Stages
17 18 19 |
# File 'lib/activevlc/parameters/parametric.rb', line 17 def visit(params = {}) @parameters.visit params end |