Class: Cliqr::Config::Validation::ValidatorFactory::NonEmptyValidator Private

Inherits:
NonNilValidator show all
Defined in:
lib/cliqr/config/validation/validator_factory.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.

Verifies that an attribute’s value is non-empty

Direct Known Subclasses

NonEmptyFormatValidator

Instance Method Summary collapse

Methods inherited from Validator

#validate

Constructor Details

#initialize(enabled) ⇒ NonEmptyValidator

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.

Create a new non-empty validator



93
94
95
96
# File 'lib/cliqr/config/validation/validator_factory.rb', line 93

def initialize(enabled)
  super(enabled)
  @enabled = enabled
end