Class: Cliqr::Config::Validation::ValidatorFactory::CollectionValidator Private

Inherits:
TypeHierarchyValidator 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 each element inside a collection

Direct Known Subclasses

HashValidator

Instance Method Summary collapse

Methods inherited from Validator

#validate

Constructor Details

#initialize(_config, type = nil) ⇒ CollectionValidator

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 collection validator



216
217
218
# File 'lib/cliqr/config/validation/validator_factory.rb', line 216

def initialize(_config, type = nil)
  super(type || Array)
end