Class: Terminal::Table::UnicodeThickEdgeBorder

Inherits:
UnicodeBorder show all
Defined in:
lib/terminal-table/style.rb

Overview

Unicode Border with thick outer edges

Constant Summary

Constants inherited from UnicodeBorder

Terminal::Table::UnicodeBorder::ALLOWED_SEPARATOR_BORDER_STYLES, Terminal::Table::UnicodeBorder::HORIZONTALS, Terminal::Table::UnicodeBorder::INTERSECTIONS, Terminal::Table::UnicodeBorder::VERTICALS

Instance Attribute Summary

Attributes inherited from Border

#bottom, #data, #left, #right, #top

Instance Method Summary collapse

Methods inherited from UnicodeBorder

#horizontal, #vertical

Methods inherited from Border

#[], #[]=, #initialize_dup, #maybeleft, #mayberight, #remove_horizontals, #remove_verticals

Constructor Details

#initializeUnicodeThickEdgeBorder

Returns a new instance of UnicodeThickEdgeBorder.



152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# File 'lib/terminal-table/style.rb', line 152

def initialize
  super
  @data = {
    nil => nil,
    nw: "", nx: "", n:  "", ne: "", nd: nil,
    yw: "",          y:  "", ye: "", 
    aw: "", ax: "", ai: "", ae: "", ad: '', au: "", # double
    bw: "", bx: "", bi: "", be: "", bd: '', bu: "", # heavy/bold/thick
    w:  "", x:  "", i:  "", e:  "", dn: "", up: "", # normal div
    sw: "", sx: "", s:  "", se: "", su:  nil,
    # alternative dots/dashes
    x_dot4:  '', x_dot3:  '', x_dash:  '',
    bx_dot4: '', bx_dot3: '', bx_dash: '',
  }
end