Class: LintTrap::Language::Base
- Inherits:
-
Object
- Object
- LintTrap::Language::Base
show all
- Defined in:
- lib/lint_trap/language/base.rb
Overview
Instance Method Summary
collapse
Instance Method Details
#==(other) ⇒ Object
13
14
15
|
# File 'lib/lint_trap/language/base.rb', line 13
def ==(other)
name == other.name
end
|
#linters ⇒ Object
9
10
11
|
# File 'lib/lint_trap/language/base.rb', line 9
def linters
raise NotImplementedError, 'Must define what linters this language supports.'
end
|
#name ⇒ Object
5
6
7
|
# File 'lib/lint_trap/language/base.rb', line 5
def name
self.class.name.split('::').last
end
|