Class: ADLicenseLint::MarkdownFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/ad_licenselint/markdown_formatter.rb

Instance Method Summary collapse

Constructor Details

#initialize(report) ⇒ MarkdownFormatter

Returns a new instance of MarkdownFormatter.



3
4
5
# File 'lib/ad_licenselint/markdown_formatter.rb', line 3

def initialize(report)
  @entries = report.entries.sort_by(&:pod_name)
end

Instance Method Details

#formatted_contentObject



7
8
9
# File 'lib/ad_licenselint/markdown_formatter.rb', line 7

def formatted_content
  "#{table}\n\n#{foldable_content}"
end