Class: Dragnet::Validators::Fields::PathValidator
- Inherits:
-
FieldValidator
- Object
- FieldValidator
- Dragnet::Validators::Fields::PathValidator
- Defined in:
- lib/dragnet/validators/fields/path_validator.rb
Overview
Validates the path
attribute of a Repo
object.
Instance Method Summary collapse
-
#validate(key, value) ⇒ Object
Validates the Path of the repository.
Instance Method Details
#validate(key, value) ⇒ Object
Validates the Path of the repository.
15 16 17 18 |
# File 'lib/dragnet/validators/fields/path_validator.rb', line 15 def validate(key, value) validate_presence(key, value) validate_type(key, value, String) end |