Class: Git::Lint::Reporters::Style
- Inherits:
-
Object
- Object
- Git::Lint::Reporters::Style
- Defined in:
- lib/git/lint/reporters/style.rb
Overview
Reports issues related to a single style.
Instance Method Summary collapse
-
#initialize(analyzer) ⇒ Style
constructor
A new instance of Style.
- #to_s ⇒ Object (also: #to_str)
Constructor Details
#initialize(analyzer) ⇒ Style
Returns a new instance of Style.
10 11 12 13 14 |
# File 'lib/git/lint/reporters/style.rb', line 10 def initialize(analyzer, **) super(**) @analyzer = analyzer @issue = analyzer.issue end |
Instance Method Details
#to_s ⇒ Object Also known as: to_str
16 |
# File 'lib/git/lint/reporters/style.rb', line 16 def to_s = color[, style] |