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, colorizer: Pastel.new) ⇒ Style
constructor
A new instance of Style.
- #to_s ⇒ Object
Constructor Details
#initialize(analyzer, colorizer: Pastel.new) ⇒ Style
Returns a new instance of Style.
10 11 12 13 14 |
# File 'lib/git/lint/reporters/style.rb', line 10 def initialize analyzer, colorizer: Pastel.new @analyzer = analyzer @issue = analyzer.issue @colorizer = colorizer end |
Instance Method Details
#to_s ⇒ Object
16 17 18 |
# File 'lib/git/lint/reporters/style.rb', line 16 def to_s colorizer.public_send color, end |