Module: ActiveVlc::Parametric

Extended by:
ActiveSupport::Concern
Included in:
Pipeline, Stage::Base
Defined in:
lib/activevlc/parameters/parametric.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#parametersObject (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

Returns:

  • (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

#initializeObject



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