Sha256: 58b4e0106d88840ff581804f20a2aef466968a5a84afe5cdb755723a05825730

Contents?: true

Size: 589 Bytes

Versions: 30

Compression:

Stored size: 589 Bytes

Contents

# -*- 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

Version data entries

30 entries across 29 versions & 4 rubygems

Version Path
hirber-0.8.4 lib/hirb/helpers/unicode_table.rb
hirber-0.8.2 lib/hirb/helpers/unicode_table.rb
hirber-0.8.1 lib/hirb/helpers/unicode_table.rb
hirber-0.8.0 lib/hirb/helpers/unicode_table.rb
hirb-0.7.3 lib/hirb/helpers/unicode_table.rb
climine-0.0.7 vendor/bundle/ruby/2.0.0/gems/hirb-0.7.1/lib/hirb/helpers/unicode_table.rb
climine-0.0.7 vendor/bundle/ruby/2.1.0/gems/hirb-0.7.1/lib/hirb/helpers/unicode_table.rb
hirb-0.7.2 lib/hirb/helpers/unicode_table.rb
climine-0.0.6 vendor/bundle/ruby/2.0.0/gems/hirb-0.7.1/lib/hirb/helpers/unicode_table.rb
climine-0.0.5 vendor/bundle/ruby/2.0.0/gems/hirb-0.7.1/lib/hirb/helpers/unicode_table.rb
climine-0.0.4 vendor/bundle/ruby/2.0.0/gems/hirb-0.7.1/lib/hirb/helpers/unicode_table.rb
climine-0.0.3 vendor/bundle/ruby/2.0.0/gems/hirb-0.7.1/lib/hirb/helpers/unicode_table.rb
climine-0.0.2 vendor/bundle/ruby/2.0.0/gems/hirb-0.7.1/lib/hirb/helpers/unicode_table.rb
climine-0.0.1 vendor/bundle/ruby/2.0.0/gems/hirb-0.7.1/lib/hirb/helpers/unicode_table.rb
hirb-0.7.1 lib/hirb/helpers/unicode_table.rb
hirb-0.7.0 lib/hirb/helpers/unicode_table.rb
hirb-0.6.2 lib/hirb/helpers/unicode_table.rb
hirb-0.6.1 lib/hirb/helpers/unicode_table.rb
hsume2-hirb-0.6.3 lib/hirb/helpers/unicode_table.rb
hsume2-hirb-0.6.2 lib/hirb/helpers/unicode_table.rb