Class: Lotus::Validations::BlankValueChecker Private

Inherits:
Object
  • Object
show all
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.

Since:

  • 0.2.2

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.

Since:

  • 0.2.2

/\A[[:space:]]*\z/.freeze

Instance Method Summary collapse

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.

Since:

  • 0.2.2



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”.

Returns:

  • (Boolean)

Since:

  • 0.2.2



18
19
20
# File 'lib/lotus/validations/blank_value_checker.rb', line 18

def blank_value?
  _nil_value? || _blank_string? || _empty_value?
end