Class: CommandKit::Printing::Tables::BorderStyle Private
- Inherits:
-
Object
- Object
- CommandKit::Printing::Tables::BorderStyle
- Defined in:
- lib/command_kit/printing/tables/border_style.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Represents the table's border style.
Instance Attribute Summary collapse
-
#bottom_border ⇒ String
readonly
private
The bottom border character.
-
#bottom_joined_border ⇒ String
readonly
private
The bottom-joined border character.
-
#bottom_left_corner ⇒ String
readonly
private
The bottom-left-corner border character.
-
#bottom_right_corner ⇒ String
readonly
private
The bottom-right-corner border character.
-
#horizontal_separator ⇒ String
readonly
private
The horizontal-separator character.
-
#inner_joined_border ⇒ String
readonly
private
The inner-joined border character.
-
#left_border ⇒ String
readonly
private
The left-hand-side border character.
-
#left_joined_border ⇒ String
readonly
private
The left-hand-side-joined-border character.
-
#right_border ⇒ String
readonly
private
The right-hand-side border character.
-
#right_joined_border ⇒ String
readonly
private
The right-hand-side joined border character.
-
#top_border ⇒ String
readonly
private
The top-border character.
-
#top_joined_border ⇒ String
readonly
private
The top-joined-border character.
-
#top_left_corner ⇒ String
readonly
private
The top-left-corner border character.
-
#top_right_corner ⇒ String
readonly
private
The top-right-corner border character.
-
#vertical_separator ⇒ String
readonly
private
The vertical-separator character.
Instance Method Summary collapse
-
#initialize(top_left_corner: ' ', top_border: ' ', top_joined_border: ' ', top_right_corner: ' ', left_border: ' ', left_joined_border: ' ', horizontal_separator: ' ', vertical_separator: ' ', inner_joined_border: ' ', right_border: ' ', right_joined_border: ' ', bottom_border: ' ', bottom_left_corner: ' ', bottom_joined_border: ' ', bottom_right_corner: ' ') ⇒ BorderStyle
constructor
private
Initializes the border style.
Constructor Details
#initialize(top_left_corner: ' ', top_border: ' ', top_joined_border: ' ', top_right_corner: ' ', left_border: ' ', left_joined_border: ' ', horizontal_separator: ' ', vertical_separator: ' ', inner_joined_border: ' ', right_border: ' ', right_joined_border: ' ', bottom_border: ' ', bottom_left_corner: ' ', bottom_joined_border: ' ', bottom_right_corner: ' ') ⇒ BorderStyle
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Initializes the border style.
The top-border character.
136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 |
# File 'lib/command_kit/printing/tables/border_style.rb', line 136 def initialize(top_left_corner: ' ', top_border: ' ', top_joined_border: ' ', top_right_corner: ' ', left_border: ' ', left_joined_border: ' ', horizontal_separator: ' ', vertical_separator: ' ', inner_joined_border: ' ', right_border: ' ', right_joined_border: ' ', bottom_border: ' ', bottom_left_corner: ' ', bottom_joined_border: ' ', bottom_right_corner: ' ') @top_left_corner = top_left_corner @top_border = top_border @top_joined_border = top_joined_border @top_right_corner = top_right_corner @left_border = left_border @left_joined_border = left_joined_border @horizontal_separator = horizontal_separator @vertical_separator = vertical_separator @inner_joined_border = inner_joined_border @right_border = right_border @right_joined_border = right_joined_border @bottom_border = bottom_border @bottom_left_corner = bottom_left_corner @bottom_joined_border = bottom_joined_border @bottom_right_corner = bottom_right_corner end |
Instance Attribute Details
#bottom_border ⇒ String (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
The bottom border character.
71 72 73 |
# File 'lib/command_kit/printing/tables/border_style.rb', line 71 def bottom_border @bottom_border end |
#bottom_joined_border ⇒ String (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
The bottom-joined border character.
81 82 83 |
# File 'lib/command_kit/printing/tables/border_style.rb', line 81 def bottom_joined_border @bottom_joined_border end |
#bottom_left_corner ⇒ String (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
The bottom-left-corner border character.
76 77 78 |
# File 'lib/command_kit/printing/tables/border_style.rb', line 76 def bottom_left_corner @bottom_left_corner end |
#bottom_right_corner ⇒ String (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
The bottom-right-corner border character.
86 87 88 |
# File 'lib/command_kit/printing/tables/border_style.rb', line 86 def bottom_right_corner @bottom_right_corner end |
#horizontal_separator ⇒ String (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
The horizontal-separator character.
46 47 48 |
# File 'lib/command_kit/printing/tables/border_style.rb', line 46 def horizontal_separator @horizontal_separator end |
#inner_joined_border ⇒ String (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
The inner-joined border character.
56 57 58 |
# File 'lib/command_kit/printing/tables/border_style.rb', line 56 def inner_joined_border @inner_joined_border end |
#left_border ⇒ String (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
The left-hand-side border character.
36 37 38 |
# File 'lib/command_kit/printing/tables/border_style.rb', line 36 def left_border @left_border end |
#left_joined_border ⇒ String (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
The left-hand-side-joined-border character.
41 42 43 |
# File 'lib/command_kit/printing/tables/border_style.rb', line 41 def left_joined_border @left_joined_border end |
#right_border ⇒ String (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
The right-hand-side border character.
61 62 63 |
# File 'lib/command_kit/printing/tables/border_style.rb', line 61 def right_border @right_border end |
#right_joined_border ⇒ String (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
The right-hand-side joined border character.
66 67 68 |
# File 'lib/command_kit/printing/tables/border_style.rb', line 66 def right_joined_border @right_joined_border end |
#top_border ⇒ String (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
The top-border character.
21 22 23 |
# File 'lib/command_kit/printing/tables/border_style.rb', line 21 def top_border @top_border end |
#top_joined_border ⇒ String (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
The top-joined-border character.
26 27 28 |
# File 'lib/command_kit/printing/tables/border_style.rb', line 26 def top_joined_border @top_joined_border end |
#top_left_corner ⇒ String (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
The top-left-corner border character.
16 17 18 |
# File 'lib/command_kit/printing/tables/border_style.rb', line 16 def top_left_corner @top_left_corner end |
#top_right_corner ⇒ String (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
The top-right-corner border character.
31 32 33 |
# File 'lib/command_kit/printing/tables/border_style.rb', line 31 def top_right_corner @top_right_corner end |
#vertical_separator ⇒ String (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
The vertical-separator character.
51 52 53 |
# File 'lib/command_kit/printing/tables/border_style.rb', line 51 def vertical_separator @vertical_separator end |