Class: Hirb::Helpers::UnicodeTable

Inherits:
Table
  • Object
show all
Defined in:
lib/hirb/helpers/unicode_table.rb

Constant Summary collapse

CHARS =
{
  :top => {:left => '', :center => '', :right => '', :horizontal => '',
    :vertical => {:outside => '', :inside => ''} },
  :middle => {:left => '', :center => '', :right => '', :horizontal => ''},
  :bottom => {:left => '', :center => '', :right => '', :horizontal => '',
    :vertical => {:outside => '', :inside => ''} }
}

Constants inherited from Table

Table::BORDER_LENGTH, Table::MIN_FIELD_LENGTH

Instance Attribute Summary

Attributes inherited from Table

#field_lengths, #fields, #max_fields, #width

Class Method Summary collapse

Methods inherited from Table

#actual_width, #array_to_indices_hash, #call_filter, #chars, #default_field_lengths, #enforce_field_constraints, #filter_values, #format_cell, #format_values, #initialize, #render, #render_border, #render_footer, #render_header, #render_rows, #render_table_description, #render_table_header, #set_fields, #set_filter_defaults, #set_headers, #set_rows, #setup_field_lengths, #validate_values

Constructor Details

This class inherits a constructor from Hirb::Helpers::Table

Class Method Details

.render(rows, options = {}) ⇒ Object

Renders a unicode table



12
13
14
# File 'lib/hirb/helpers/unicode_table.rb', line 12

def self.render(rows, options={})
  new(rows, options).render
end