Class: MetzScan::Commands::Scan::ProjectAnalyzerSummaryBreakdownFormatter
- Inherits:
-
Object
- Object
- MetzScan::Commands::Scan::ProjectAnalyzerSummaryBreakdownFormatter
- Defined in:
- lib/metz_scan/commands/scan/project_analyzer_summary_breakdown_formatter.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(rule) ⇒ ProjectAnalyzerSummaryBreakdownFormatter
constructor
A new instance of ProjectAnalyzerSummaryBreakdownFormatter.
Constructor Details
#initialize(rule) ⇒ ProjectAnalyzerSummaryBreakdownFormatter
Returns a new instance of ProjectAnalyzerSummaryBreakdownFormatter.
7 8 9 |
# File 'lib/metz_scan/commands/scan/project_analyzer_summary_breakdown_formatter.rb', line 7 def initialize(rule) @rule = rule end |
Instance Method Details
#call ⇒ Object
11 12 13 14 15 |
# File 'lib/metz_scan/commands/scan/project_analyzer_summary_breakdown_formatter.rb', line 11 def call return if segments.empty? "mix: #{segments.join('; ')}" end |