module AsciiTables

Overview

Placeholder for AsciiTables namespace

Defined in:

ascii_tables.cr

Constant Summary

VERSION = {{ (`shards version /srv/crystaldoc.info/github-frncsdrk-ascii_tables-v0.1.2/src`).chomp.stringify }}

Class Method Summary

Class Method Detail

def self.render(data : Array(Array(String)), config : TableConfig = TableConfig.new) : String #

Renders an ASCII table. Supports Markdown formatting.

config = AsciiTables::TableConfig.new
config.headers = ["one", "two", "three"]

table = AsciiTables.render([["hello", ",", "world"]], config)

[View source]