Class: Qonfig::Validation::Building::PredefinedBuilder Private

Inherits:
Object
  • Object
show all
Defined in:
lib/qonfig/validation/building/predefined_builder.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Since:

  • 0.20.0

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, validation_logic, predefined_registry) ⇒ void

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Parameters:

Since:

  • 0.20.0



26
27
28
29
30
# File 'lib/qonfig/validation/building/predefined_builder.rb', line 26

def initialize(name, validation_logic, predefined_registry)
  @name = name
  @validation_logic = validation_logic
  @predefined_registry = predefined_registry
end

Class Method Details

.build(name, validation_logic, predefined_registry) ⇒ void

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

This method returns an undefined value.

Parameters:

Since:

  • 0.20.0



14
15
16
# File 'lib/qonfig/validation/building/predefined_builder.rb', line 14

def build(name, validation_logic, predefined_registry)
  new(name, validation_logic, predefined_registry).build
end

Instance Method Details

#buildvoid

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

This method returns an undefined value.

Since:

  • 0.20.0



36
37
38
39
# File 'lib/qonfig/validation/building/predefined_builder.rb', line 36

def build
  validate_attributes!
  predefine_validator
end