Class: LicenseFinder::MergedReport
- Defined in:
- lib/license_finder/reports/merged_report.rb
Constant Summary collapse
- AVAILABLE_COLUMNS =
AVAILABLE_COLUMNS + ['aggregate_paths']
Constants inherited from CsvReport
CsvReport::COMMA_SEP, CsvReport::MISSING_DEPENDENCY_TEXT, CsvReport::NEWLINE_SEP
Instance Method Summary collapse
- #format_aggregate_paths(merged_dep) ⇒ Object
-
#initialize(dependencies, options = {}) ⇒ MergedReport
constructor
A new instance of MergedReport.
Methods inherited from CsvReport
Methods inherited from Report
Constructor Details
#initialize(dependencies, options = {}) ⇒ MergedReport
5 6 7 8 9 10 |
# File 'lib/license_finder/reports/merged_report.rb', line 5 def initialize(dependencies, = {}) =.dup [:columns] ||= %w[name version licenses aggregate_paths] super(dependencies, ) end |
Instance Method Details
#format_aggregate_paths(merged_dep) ⇒ Object
12 13 14 |
# File 'lib/license_finder/reports/merged_report.rb', line 12 def format_aggregate_paths(merged_dep) merged_dep.aggregate_paths.join(self.class::COMMA_SEP) end |