Class: Kiba::Extend::Registry::RegistryValidator
- Inherits:
-
Object
- Object
- Kiba::Extend::Registry::RegistryValidator
- Defined in:
- lib/kiba/extend/registry/registry_validator.rb
Overview
Utility class to report on the validity of the FileRegistry.
Instance Method Summary collapse
-
#report ⇒ Object
Prints to STDOUT a report of errors and warnings to inform needed development in project applications.
-
#valid? ⇒ TrueClass, FalseClass
Check validity of the registry as a whole.
-
#warnings? ⇒ TrueClass, FalseClass
Whether any entries have warnings.
Instance Method Details
#report ⇒ Object
Prints to STDOUT a report of errors and warnings to inform needed development in project applications
10 11 12 13 14 |
# File 'lib/kiba/extend/registry/registry_validator.rb', line 10 def report puts "" report_validity report_warnings end |
#valid? ⇒ TrueClass, FalseClass
Check validity of the registry as a whole
19 20 21 22 23 |
# File 'lib/kiba/extend/registry/registry_validator.rb', line 19 def valid? return true if invalid.empty? false end |
#warnings? ⇒ TrueClass, FalseClass
Whether any entries have warnings
28 29 30 31 32 |
# File 'lib/kiba/extend/registry/registry_validator.rb', line 28 def warnings? return false if warnings.empty? true end |