Class: Terminal::Table::Style

Inherits:
Object
  • Object
show all
Defined in:
lib/common/hacks.rb

Constant Summary collapse

@@defaults =
{
  :border_x => "-", :border_y => "|", :border_i => "+",
  :padding_left => 1, :padding_right => 1,
  :margin_left => '',
  :width => nil, :alignment => nil
}

Instance Attribute Summary collapse

Instance Attribute Details

#alignmentObject

Returns the value of attribute alignment


96
97
98
# File 'lib/common/hacks.rb', line 96

def alignment
  @alignment
end

#border_iObject

Returns the value of attribute border_i


90
91
92
# File 'lib/common/hacks.rb', line 90

def border_i
  @border_i
end

#border_xObject

Returns the value of attribute border_x


88
89
90
# File 'lib/common/hacks.rb', line 88

def border_x
  @border_x
end

#border_yObject

Returns the value of attribute border_y


89
90
91
# File 'lib/common/hacks.rb', line 89

def border_y
  @border_y
end

#margin_leftObject

Returns the value of attribute margin_left


87
88
89
# File 'lib/common/hacks.rb', line 87

def margin_left
  @margin_left
end

#padding_leftObject

Returns the value of attribute padding_left


92
93
94
# File 'lib/common/hacks.rb', line 92

def padding_left
  @padding_left
end

#padding_rightObject

Returns the value of attribute padding_right


93
94
95
# File 'lib/common/hacks.rb', line 93

def padding_right
  @padding_right
end

#widthObject

Returns the value of attribute width


95
96
97
# File 'lib/common/hacks.rb', line 95

def width
  @width
end