Class: LIVR::Rules::Common::NotEmpty
- Inherits:
-
LIVR::Rule
- Object
- LIVR::Rule
- LIVR::Rules::Common::NotEmpty
- Defined in:
- lib/livr/rules/common.rb
Instance Method Summary collapse
Methods inherited from LIVR::Rule
Constructor Details
This class inherits a constructor from LIVR::Rule
Instance Method Details
#call(value, user_data, field_results) ⇒ Object
13 14 15 |
# File 'lib/livr/rules/common.rb', line 13 def call(value, user_data, field_results) "CANNOT_BE_EMPTY" if value == "" end |