Class: Yema::Rule::Required
- Inherits:
-
Yema::Rule
- Object
- Yema::Rule
- Yema::Rule::Required
- Defined in:
- lib/yema/rule/required.rb
Instance Attribute Summary
Attributes inherited from Yema::Rule
Instance Method Summary collapse
Methods inherited from Yema::Rule
#errors, #initialize, required_options
Constructor Details
This class inherits a constructor from Yema::Rule
Instance Method Details
#matches?(value) ⇒ Boolean
5 6 7 |
# File 'lib/yema/rule/required.rb', line 5 def matches?(value) !blank?(value) end |