Class: Terminal::Table::Style
- Inherits:
-
Object
- Object
- Terminal::Table::Style
- Defined in:
- lib/common/hacks.rb
Constant Summary
- @@defaults =
{ :border_x => "-", :border_y => "|", :border_i => "+", :padding_left => 1, :padding_right => 1, :margin_left => '', :width => nil, :alignment => nil }
Instance Attribute Summary (collapse)
-
- (Object) alignment
Returns the value of attribute alignment.
-
- (Object) border_i
Returns the value of attribute border_i.
-
- (Object) border_x
Returns the value of attribute border_x.
-
- (Object) border_y
Returns the value of attribute border_y.
-
- (Object) margin_left
Returns the value of attribute margin_left.
-
- (Object) padding_left
Returns the value of attribute padding_left.
-
- (Object) padding_right
Returns the value of attribute padding_right.
-
- (Object) width
Returns the value of attribute width.
Instance Attribute Details
- (Object) alignment
Returns the value of attribute alignment
105 106 107 |
# File 'lib/common/hacks.rb', line 105 def alignment @alignment end |
- (Object) border_i
Returns the value of attribute border_i
99 100 101 |
# File 'lib/common/hacks.rb', line 99 def border_i @border_i end |
- (Object) border_x
Returns the value of attribute border_x
97 98 99 |
# File 'lib/common/hacks.rb', line 97 def border_x @border_x end |
- (Object) border_y
Returns the value of attribute border_y
98 99 100 |
# File 'lib/common/hacks.rb', line 98 def border_y @border_y end |
- (Object) margin_left
Returns the value of attribute margin_left
96 97 98 |
# File 'lib/common/hacks.rb', line 96 def margin_left @margin_left end |
- (Object) padding_left
Returns the value of attribute padding_left
101 102 103 |
# File 'lib/common/hacks.rb', line 101 def padding_left @padding_left end |
- (Object) padding_right
Returns the value of attribute padding_right
102 103 104 |
# File 'lib/common/hacks.rb', line 102 def padding_right @padding_right end |
- (Object) width
Returns the value of attribute width
104 105 106 |
# File 'lib/common/hacks.rb', line 104 def width @width end |