Class: Marktable::Tables::Markdown
- Inherits:
-
Object
- Object
- Marktable::Tables::Markdown
- Defined in:
- lib/marktable/tables/markdown.rb
Instance Method Summary collapse
-
#initialize(table, headers) ⇒ Markdown
constructor
A new instance of Markdown.
- #parse ⇒ Object
Constructor Details
#initialize(table, headers) ⇒ Markdown
Returns a new instance of Markdown.
11 12 13 14 |
# File 'lib/marktable/tables/markdown.rb', line 11 def initialize(table, headers) @headers_flag = headers @markdown_rows = extract_rows(table) end |
Instance Method Details
#parse ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/marktable/tables/markdown.rb', line 16 def parse if with_headers? parse_with_headers else parse_without_headers end end |