Class: LIVR::Rules::Modifiers::Trim
- Inherits:
-
LIVR::Rule
- Object
- LIVR::Rule
- LIVR::Rules::Modifiers::Trim
- Defined in:
- lib/livr/rules/modifiers.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
18 19 20 21 22 |
# File 'lib/livr/rules/modifiers.rb', line 18 def call(value, user_data, field_results) return if is_no_value(value) || value.is_a?(Hash) field_results << value.to_s.strip return end |