Class: Cliqr::Config::Validation::ValidatorFactory::TypeHierarchyValidator 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.

Validates that the value of an attribute is of a type that extends from another

Direct Known Subclasses

CollectionValidator

Instance Method Summary collapse

Methods inherited from Validator

#validate

Constructor Details

#initialize(super_type) ⇒ TypeHierarchyValidator

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 instance of type hierarchy validator

Parameters:

  • super_type (Class)

    Class reference that the validated variable must extend from



191
192
193
194
# File 'lib/cliqr/config/validation/validator_factory.rb', line 191

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