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 :
unicode_table.rb
back
Copy
# -*- encoding : utf-8 -*- class Hirb::Helpers::UnicodeTable < 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 => '╎'} } } # Renders a unicode table def self.render(rows, options={}) new(rows, options).render end end