Class: Brakeman::Report::Markdown::MarkdownTable

Inherits:
Terminal::Table
  • Object
show all
Defined in:
lib/brakeman/report/report_markdown.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}, &block) ⇒ MarkdownTable

Returns a new instance of MarkdownTable.



7
8
9
10
11
12
13
14
15
# File 'lib/brakeman/report/report_markdown.rb', line 7

def initialize options = {}, &block
  options[:style] ||= {}
  options[:style].merge!({
      :border_x => '-',
      :border_y => '|',
      :border_i => '|'
  })
  super options, &block
end

Instance Method Details

#renderObject Also known as: to_s



17
18
19
# File 'lib/brakeman/report/report_markdown.rb', line 17

def render
  super.split("\n")[1...-1].join("\n")
end