Class: Qonfig::Validator::Basic Private

Inherits:
Object
  • Object
show all
Defined in:
lib/qonfig/validator/basic.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.

Since:

  • 0.13.0

Direct Known Subclasses

MethodBased, Predefined::Common, ProcBased

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(setting_key_matcher) ⇒ void

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.

Parameters:

Since:

  • 0.13.0



17
18
19
# File 'lib/qonfig/validator/basic.rb', line 17

def initialize(setting_key_matcher)
  @setting_key_matcher = setting_key_matcher
end

Instance Attribute Details

#setting_key_matcherString, ... (readonly)

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.

Returns:

  • (String, Symbol, NilClass)

Since:

  • 0.13.0



10
11
12
# File 'lib/qonfig/validator/basic.rb', line 10

def setting_key_matcher
  @setting_key_matcher
end

Instance Method Details

#validate(data_set) ⇒ 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.

Parameters:

Returns:

  • (Boolean)

Since:

  • 0.13.0



26
27
28
# File 'lib/qonfig/validator/basic.rb', line 26

def validate(data_set)
  setting_key_provided? ? validate_concrete(data_set) : validate_full(data_set)
end