Class: AocCli::Validators::TypeValidator
- Inherits:
-
Kangaru::Validator
- Object
- Kangaru::Validator
- AocCli::Validators::TypeValidator
- Defined in:
- lib/aoc_cli/validators/type_validator.rb
Instance Method Summary collapse
Instance Method Details
#validate ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/aoc_cli/validators/type_validator.rb', line 4 def validate validate_target_type_set! if params[:equals] validate_type! elsif params[:one_of] validate_type_from_list! end end |