Class: StackMaster::SparkleFormation::CompileTime::AllowedValuesValidator

Inherits:
ValueValidator
  • Object
show all
Defined in:
lib/stack_master/sparkle_formation/compile_time/allowed_values_validator.rb

Constant Summary collapse

KEY =
:allowed_values

Instance Attribute Summary

Attributes inherited from ValueValidator

#error, #is_valid

Instance Method Summary collapse

Methods inherited from ValueValidator

#validate

Constructor Details

#initialize(name, definition, parameter) ⇒ AllowedValuesValidator

Returns a new instance of AllowedValuesValidator.



10
11
12
13
14
# File 'lib/stack_master/sparkle_formation/compile_time/allowed_values_validator.rb', line 10

def initialize(name, definition, parameter)
  @name = name
  @definition = definition
  @parameter = parameter
end