Class: Take::Lint::Base Abstract
- Inherits:
-
Object
- Object
- Take::Lint::Base
- Defined in:
- lib/take/lint/base.rb
Overview
This class is abstract.
Manages linting source files when building. Should be interesting to see how this pans out.
Instance Method Summary collapse
-
#initialize(file) ⇒ Base
constructor
Initializes the base linter.
-
#lint ⇒ Array<Take::Lint::Error>
abstract
Lints the given file.
Constructor Details
#initialize(file) ⇒ Base
Initializes the base linter. Requires only one parameter.
13 14 15 |
# File 'lib/take/lint/base.rb', line 13 def initialize(file) @file = file end |
Instance Method Details
#lint ⇒ Array<Take::Lint::Error>
This method is abstract.
Lints the given file. Returns an array of lint errors, which is used to give information about what could be fixed.
22 23 24 |
# File 'lib/take/lint/base.rb', line 22 def lint raise NotImplementedError end |