Class: Git::Lint::Reporters::Group
- Inherits:
-
Object
- Object
- Git::Lint::Reporters::Group
- Defined in:
- lib/git/lint/reporters/group.rb
Overview
Reports issue for a group of references.
Instance Method Summary collapse
-
#initialize(analyzer) ⇒ Group
constructor
A new instance of Group.
- #to_s ⇒ Object (also: #to_str)
Constructor Details
#initialize(analyzer) ⇒ Group
Returns a new instance of Group.
12 13 14 15 16 |
# File 'lib/git/lint/reporters/group.rb', line 12 def initialize(analyzer, **) super(**) @analyzer = analyzer @issue = analyzer.issue end |
Instance Method Details
#to_s ⇒ Object Also known as: to_str
18 19 20 21 22 |
# File 'lib/git/lint/reporters/group.rb', line 18 def to_s return Core::EMPTY_STRING if issue.empty? color[, style] end |