Class: Take::Lint::Base Abstract

Inherits:
Object
  • Object
show all
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

Constructor Details

#initialize(file) ⇒ Base

Initializes the base linter. Requires only one parameter.

Parameters:

  • file (Path)

    the file that will be linted.



13
14
15
# File 'lib/take/lint/base.rb', line 13

def initialize(file)
  @file = file
end

Instance Method Details

#lintArray<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.

Returns:

Raises:

  • (NotImplementedError)


22
23
24
# File 'lib/take/lint/base.rb', line 22

def lint
  raise NotImplementedError
end