Class: Lotus::Validations::BlankValueChecker Private
- Inherits:
-
Object
- Object
- Lotus::Validations::BlankValueChecker
- Defined in:
- lib/lotus/validations/blank_value_checker.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Constant Summary collapse
- BLANK_STRING_MATCHER =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
/\A[[:space:]]*\z/.freeze
Instance Method Summary collapse
-
#blank_value? ⇒ Boolean
private
Checks if the value is “blank”.
-
#initialize(value) ⇒ BlankValueChecker
constructor
private
A new instance of BlankValueChecker.
Constructor Details
#initialize(value) ⇒ BlankValueChecker
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of BlankValueChecker.
10 11 12 |
# File 'lib/lotus/validations/blank_value_checker.rb', line 10 def initialize(value) @value = value end |
Instance Method Details
#blank_value? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Checks if the value is “blank”.
18 19 20 |
# File 'lib/lotus/validations/blank_value_checker.rb', line 18 def blank_value? _nil_value? || _blank_string? || _empty_value? end |