Class: Qonfig::Validation::Validators::Basic Private
- Inherits:
-
Object
- Object
- Qonfig::Validation::Validators::Basic
- Defined in:
- lib/qonfig/validation/validators/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.
Direct Known Subclasses
Instance Attribute Summary collapse
- #setting_key_matcher ⇒ String, ... readonly private
- #strict ⇒ Boolean readonly private
Instance Method Summary collapse
- #initialize(setting_key_matcher, strict) ⇒ void constructor private
- #validate(data_set) ⇒ Boolean private
Constructor Details
#initialize(setting_key_matcher, strict) ⇒ 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.
24 25 26 27 |
# File 'lib/qonfig/validation/validators/basic.rb', line 24 def initialize(setting_key_matcher, strict) @setting_key_matcher = setting_key_matcher @strict = strict end |
Instance Attribute Details
#setting_key_matcher ⇒ String, ... (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.
10 11 12 |
# File 'lib/qonfig/validation/validators/basic.rb', line 10 def setting_key_matcher @setting_key_matcher end |
#strict ⇒ Boolean (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.
16 17 18 |
# File 'lib/qonfig/validation/validators/basic.rb', line 16 def strict @strict 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.
34 35 36 |
# File 'lib/qonfig/validation/validators/basic.rb', line 34 def validate(data_set) setting_key_provided? ? validate_concrete(data_set) : validate_full(data_set) end |