Class: Commons::Integrity::Check::Base
- Inherits:
-
Object
- Object
- Commons::Integrity::Check::Base
- Defined in:
- lib/commons/integrity/check/base.rb
Overview
All other checks should inherit from here, and override ‘errors`
Direct Known Subclasses
Defined Under Namespace
Classes: Error
Class Method Summary collapse
Instance Method Summary collapse
- #errors ⇒ Object
-
#initialize(filename, config: nil) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(filename, config: nil) ⇒ Base
Returns a new instance of Base.
8 9 10 11 |
# File 'lib/commons/integrity/check/base.rb', line 8 def initialize(filename, config: nil) @filename = filename @given_config = config end |
Class Method Details
.moniker ⇒ Object
17 18 19 |
# File 'lib/commons/integrity/check/base.rb', line 17 def self.moniker name.sub('Commons::Integrity::Check::', '') end |
Instance Method Details
#errors ⇒ Object
13 14 15 |
# File 'lib/commons/integrity/check/base.rb', line 13 def errors [] end |