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.
5 6 7 |
# File 'lib/stack_master/sparkle_formation/compile_time/value_validator.rb', line 5 def error @error end |
#is_valid ⇒ Object (readonly)
Returns the value of attribute is_valid.
5 6 7 |
# File 'lib/stack_master/sparkle_formation/compile_time/value_validator.rb', line 5 def is_valid @is_valid end |
Instance Method Details
#validate ⇒ Object
7 8 9 10 |
# File 'lib/stack_master/sparkle_formation/compile_time/value_validator.rb', line 7 def validate @is_valid = check_is_valid @error = create_error unless @is_valid end |