Class: LicenseFinder::TextReport

Inherits:
CsvReport show all
Defined in:
lib/license_finder/reports/text_report.rb

Constant Summary collapse

COMMA_SEP =
', '.freeze

Constants inherited from CsvReport

CsvReport::AVAILABLE_COLUMNS, CsvReport::MISSING_DEPENDENCY_TEXT, CsvReport::NEWLINE_SEP

Instance Method Summary collapse

Methods inherited from CsvReport

#to_s

Methods inherited from Report

of

Constructor Details

#initialize(dependencies, options = {}) ⇒ TextReport

Returns a new instance of TextReport.



5
6
7
8
9
10
# File 'lib/license_finder/reports/text_report.rb', line 5

def initialize(dependencies, options = {})
  super(dependencies, options)

  default_columns = %w[name version licenses]
  @columns = default_columns if @columns.empty?
end