D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
td-agent
/
embedded
/
lib
/
ruby
/
gems
/
2.1.0
/
gems
/
hirb-0.7.3
/
lib
/
hirb
/
helpers
/
Filename :
markdown_table.rb
back
Copy
# Creates a markdown table for github class Hirb::Helpers::MarkdownTable < Hirb::Helpers::Table CHARS = { :top => {:left => '', :center => '', :right => '', :horizontal => '', :vertical => {:outside => '|', :inside => ' | '} }, :middle => {:left => '|', :center => ' | ', :right => '|', :horizontal => '-'}, :bottom => {:left => '', :center => '', :right => '', :horizontal => '', :vertical => {:outside => '|', :inside => ' | '} } } def self.render(rows, options={}) new(rows, options).render end end