Class: Cliqr::Config::Validation::ValidatorFactory::Validator Private

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

Does not validates anything, used by default if a unknown validator type is used

Instance Method Summary collapse

Instance Method Details

#validate(name, value, errors) ⇒ 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.

Run this validator against an attribute value

Parameters:

  • name (String)

    Name of the attribute

  • value (Object)

    Value of the attribute

  • errors (Cliqr::ValidationErrors)

    Errors after validation finished

Returns:

  • (Boolean)

    true if validation passed



19
20
21
# File 'lib/cliqr/config/validation/validator_factory.rb', line 19

def validate(name, value, errors)
  validation_sequence(name, value, errors)
end