module SCSSLint::LinterRegistry

Stores all linters available to the application.

Attributes

linters[R]

Public Class Methods

extract_linters_from(linter_names) click to toggle source
# File lib/scss_lint/linter_registry.rb, line 15
def extract_linters_from(linter_names)
  linter_names.map do |linter_name|
    begin
      Linter.const_get(linter_name)
    rescue NameError
      raise NoSuchLinter, "Linter #{linter_name} does not exist"
    end
  end
end
included(base) click to toggle source
# File lib/scss_lint/linter_registry.rb, line 11
def included(base)
  @linters << base
end