Class: OpenActive::Validators::NullValidator
- Inherits:
-
BaseValidator
- Object
- BaseValidator
- OpenActive::Validators::NullValidator
- Defined in:
- lib/openactive/validators/null_validator.rb
Instance Method Summary collapse
-
#run(value) ⇒ Boolean
Run validation on the given value.
Methods inherited from BaseValidator
Instance Method Details
#run(value) ⇒ Boolean
Run validation on the given value.
8 9 10 |
# File 'lib/openactive/validators/null_validator.rb', line 8 def run(value) value.nil? end |