module Ruport::WikiTableFormatter

Ruport::WikiTableFormatter is an extention for Ruport to format Ruport::Table data into wiki table format.

Currently, following formats are supported:

To get wiki table format from Ruport::Table data, you only have to call following methods:

Example:

table = Ruport.Table('Airport', 'IATA code', 'Opend')
table << ['Kansai'     , 'KIX', 1994]
table << ['Haneda'     , 'HND', 1931]
table << ['Narita'     , 'NRT', 1978]
table << ['New Chitose', 'CTS', 1988]
md = table.to_markdown

Output

|Airport|IATA code|Opend|
|:--|:--|:--|
|Kansai|KIX|1994|
|Haneda|HND|1931|
|Narita|NRT|1978|
|New Chitose|CTS|1988|

Constants

VERSION

Version of Ruport::WikiTableFormatter