Class: StackMaster::SparkleFormation::CompileTime::ValueValidator
- Inherits:
-
Object
- Object
- StackMaster::SparkleFormation::CompileTime::ValueValidator
- Defined in:
- lib/stack_master/sparkle_formation/compile_time/value_validator.rb
Direct Known Subclasses
AllowedPatternValidator, AllowedValuesValidator, EmptyValidator, MaxLengthValidator, MaxSizeValidator, MinLengthValidator, MinSizeValidator, NumberValidator, StringValidator
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#is_valid ⇒ Object
readonly
Returns the value of attribute is_valid.
Instance Method Summary collapse
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
6 7 8 |
# File 'lib/stack_master/sparkle_formation/compile_time/value_validator.rb', line 6 def error @error end |
#is_valid ⇒ Object (readonly)
Returns the value of attribute is_valid.
6 7 8 |
# File 'lib/stack_master/sparkle_formation/compile_time/value_validator.rb', line 6 def is_valid @is_valid end |
Instance Method Details
#validate ⇒ Object
8 9 10 11 |
# File 'lib/stack_master/sparkle_formation/compile_time/value_validator.rb', line 8 def validate @is_valid = check_is_valid @error = create_error unless @is_valid end |