Class: Vernier::Output::Markdown

Inherits:
Object
  • Object
show all
Defined in:
lib/vernier/output/markdown.rb

Constant Summary collapse

DEFAULT_TOP_N =
20
DEFAULT_LINES_PER_FILE =
5

Instance Method Summary collapse

Constructor Details

#initialize(profile, top_n: DEFAULT_TOP_N, lines_per_file: DEFAULT_LINES_PER_FILE) ⇒ Markdown

Returns a new instance of Markdown.



11
12
13
14
15
# File 'lib/vernier/output/markdown.rb', line 11

def initialize(profile, top_n: DEFAULT_TOP_N, lines_per_file: DEFAULT_LINES_PER_FILE)
  @profile = profile
  @top_n = top_n
  @lines_per_file = lines_per_file
end

Instance Method Details

#outputObject



17
18
19
20
21
22
23
24
25
# File 'lib/vernier/output/markdown.rb', line 17

def output
  out = +""
  out << build_title
  out << build_summary
  out << build_hotspots
  out << build_threads
  out << build_files
  out
end