Module: MarkdownTable
- Defined in:
- lib/markdown_table.rb,
lib/markdown_table/row.rb,
lib/markdown_table/table.rb,
lib/markdown_table/header.rb,
lib/markdown_table/version.rb,
lib/markdown_table/align_row.rb
Defined Under Namespace
Classes: AlignRow, Header, Row, Table
Constant Summary collapse
- VERSION =
'0.1.0'
Class Method Summary collapse
Class Method Details
.generate(header: [], align: []) {|table| ... } ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/markdown_table.rb', line 7 def self.generate(header: [], align: []) table = MarkdownTable::Table.new(header:, align:) yield table table.generate end |