Class: Cliqr::Config::Validation::ValidatorFactory::NonEmptyFormatValidator Private

Inherits:
NonEmptyValidator 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.

Validates that a value matches a pattern and it is not empty

Instance Method Summary collapse

Methods inherited from Validator

#validate

Constructor Details

#initialize(format) ⇒ NonEmptyFormatValidator

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.

Initialize a new non-empty format validator

Parameters:

  • format (Regex)

    Format of the value to validate required



144
145
146
147
# File 'lib/cliqr/config/validation/validator_factory.rb', line 144

def initialize(format)
  super(true)
  @format = format
end