Class: Brakeman::Report::Markdown::MarkdownTable
- Inherits:
-
Terminal::Table
- Object
- Terminal::Table
- Brakeman::Report::Markdown::MarkdownTable
- Defined in:
- lib/brakeman/report/report_markdown.rb
Instance Method Summary collapse
-
#initialize(options = {}, &block) ⇒ MarkdownTable
constructor
A new instance of MarkdownTable.
- #render ⇒ Object (also: #to_s)
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 = {}, &block [:style] ||= {} [:style].merge!({ :border_x => '-', :border_y => '|', :border_i => '|' }) super , &block end |
Instance Method Details
#render ⇒ Object 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 |