Class: Git::Lint::Reporters::Style

Inherits:
Object
  • Object
show all
Defined in:
lib/git/lint/reporters/style.rb

Overview

Reports issues related to a single style.

Instance Method Summary collapse

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_sObject



16
17
18
# File 'lib/git/lint/reporters/style.rb', line 16

def to_s
  colorizer.public_send color, message
end