Class: LazyNames::ConfigValidator
- Inherits:
-
Object
- Object
- LazyNames::ConfigValidator
- Defined in:
- lib/lazy_names/config_validator.rb
Defined Under Namespace
Classes: Errors
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(lazy_names, constants) ⇒ ConfigValidator
constructor
A new instance of ConfigValidator.
Constructor Details
#initialize(lazy_names, constants) ⇒ ConfigValidator
Returns a new instance of ConfigValidator.
9 10 11 12 13 |
# File 'lib/lazy_names/config_validator.rb', line 9 def initialize(lazy_names, constants) @errors = Errors.new([], []) @constants = constants @lazy_names = lazy_names end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
5 6 7 |
# File 'lib/lazy_names/config_validator.rb', line 5 def errors @errors end |
Instance Method Details
#call ⇒ Object
15 16 17 18 19 20 |
# File 'lib/lazy_names/config_validator.rb', line 15 def call validate_constants! validate_lazy_names! self end |