Class: AocCli::Validators::IncludedValidator
- Inherits:
-
Kangaru::Validator
- Object
- Kangaru::Validator
- AocCli::Validators::IncludedValidator
- Defined in:
- lib/aoc_cli/validators/included_validator.rb
Instance Method Summary collapse
Instance Method Details
#validate ⇒ Object
4 5 6 7 8 |
# File 'lib/aoc_cli/validators/included_validator.rb', line 4 def validate return if allowed_values.include?(value) add_error!(ERRORS[:not_included]) end |