Class: AocCli::Validators::IncludedValidator

Inherits:
Kangaru::Validator
  • Object
show all
Defined in:
lib/aoc_cli/validators/included_validator.rb

Instance Method Summary collapse

Instance Method Details

#validateObject



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