Class: Burner::Modeling::Validations::Present
- Defined in:
- lib/burner/modeling/validations/present.rb
Overview
Check if a value is present. If it is blank (null or empty) then it is invalid.
Constant Summary
Constants inherited from Blank
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Burner::Modeling::Validations::Base
Instance Method Details
#valid?(object_value, resolver) ⇒ Boolean
19 20 21 |
# File 'lib/burner/modeling/validations/present.rb', line 19 def valid?(object_value, resolver) !super(object_value, resolver) end |