Class: BaseMarkdown
- Inherits:
-
Object
show all
- Defined in:
- lib/veye/views/base_markdown.rb
Instance Method Summary
collapse
Constructor Details
#initialize(title, headings) ⇒ BaseMarkdown
4
5
6
7
8
9
|
# File 'lib/veye/views/base_markdown.rb', line 4
def initialize(title, headings)
@title = title
@columns = headings
@markdown = "# #{@title}\n\n"
@table = RenderAsMarkdown::Table.new @columns
end
|
Instance Method Details
#after(paging = nil, allow_pagination = false) ⇒ Object
12
13
14
15
16
|
# File 'lib/veye/views/base_markdown.rb', line 12
def after(paging = nil, = false)
@markdown << @table.render
@markdown << "\n\n"
puts @markdown
end
|
#before ⇒ Object
10
|
# File 'lib/veye/views/base_markdown.rb', line 10
def before; end
|