Class: CommandKit::Printing::Tables::BorderStyle Private

Inherits:
Object
  • Object
show all
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.

Since:

  • 0.4.0

Instance Attribute Summary collapse

Instance Method Summary collapse

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.

Parameters:

  • top_left_corner (String) (defaults to: ' ')

    The top-left-corner border character.

  • top_border (String) (defaults to: ' ')
  • top_joined_border (String) (defaults to: ' ')

    The top-joined-border character.

  • top_right_corner (String) (defaults to: ' ')

    The top-right-corner border character.

  • left_border (String) (defaults to: ' ')

    The left-hand-side border character.

  • left_joined_border (String) (defaults to: ' ')

    The left-hand-side-joined-border character.

  • horizontal_separator (String) (defaults to: ' ')

    The horizontal-separator character.

  • vertical_separator (String) (defaults to: ' ')

    The vertical-separator character.

  • inner_joined_border (String) (defaults to: ' ')

    The inner-joined border character.

  • right_border (String) (defaults to: ' ')

    The right-hand-side border character.

  • right_joined_border (String) (defaults to: ' ')

    The right-hand-side joined border character.

  • bottom_border (String) (defaults to: ' ')

    The bottom border character.

  • bottom_left_corner (String) (defaults to: ' ')

    The bottom-left-corner border character.

  • bottom_joined_border (String) (defaults to: ' ')

    The bottom-joined border character.

  • bottom_right_corner (String) (defaults to: ' ')

    The bottom-right-corner border character.

Since:

  • 0.4.0



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_borderString (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.

Returns:

  • (String)

Since:

  • 0.4.0



71
72
73
# File 'lib/command_kit/printing/tables/border_style.rb', line 71

def bottom_border
  @bottom_border
end

#bottom_joined_borderString (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.

Returns:

  • (String)

Since:

  • 0.4.0



81
82
83
# File 'lib/command_kit/printing/tables/border_style.rb', line 81

def bottom_joined_border
  @bottom_joined_border
end

#bottom_left_cornerString (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.

Returns:

  • (String)

Since:

  • 0.4.0



76
77
78
# File 'lib/command_kit/printing/tables/border_style.rb', line 76

def bottom_left_corner
  @bottom_left_corner
end

#bottom_right_cornerString (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.

Returns:

  • (String)

Since:

  • 0.4.0



86
87
88
# File 'lib/command_kit/printing/tables/border_style.rb', line 86

def bottom_right_corner
  @bottom_right_corner
end

#horizontal_separatorString (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.

Returns:

  • (String)

Since:

  • 0.4.0



46
47
48
# File 'lib/command_kit/printing/tables/border_style.rb', line 46

def horizontal_separator
  @horizontal_separator
end

#inner_joined_borderString (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.

Returns:

  • (String)

Since:

  • 0.4.0



56
57
58
# File 'lib/command_kit/printing/tables/border_style.rb', line 56

def inner_joined_border
  @inner_joined_border
end

#left_borderString (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.

Returns:

  • (String)

Since:

  • 0.4.0



36
37
38
# File 'lib/command_kit/printing/tables/border_style.rb', line 36

def left_border
  @left_border
end

#left_joined_borderString (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.

Returns:

  • (String)

Since:

  • 0.4.0



41
42
43
# File 'lib/command_kit/printing/tables/border_style.rb', line 41

def left_joined_border
  @left_joined_border
end

#right_borderString (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.

Returns:

  • (String)

Since:

  • 0.4.0



61
62
63
# File 'lib/command_kit/printing/tables/border_style.rb', line 61

def right_border
  @right_border
end

#right_joined_borderString (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.

Returns:

  • (String)

Since:

  • 0.4.0



66
67
68
# File 'lib/command_kit/printing/tables/border_style.rb', line 66

def right_joined_border
  @right_joined_border
end

#top_borderString (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.

Returns:

  • (String)

Since:

  • 0.4.0



21
22
23
# File 'lib/command_kit/printing/tables/border_style.rb', line 21

def top_border
  @top_border
end

#top_joined_borderString (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.

Returns:

  • (String)

Since:

  • 0.4.0



26
27
28
# File 'lib/command_kit/printing/tables/border_style.rb', line 26

def top_joined_border
  @top_joined_border
end

#top_left_cornerString (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.

Returns:

  • (String)

Since:

  • 0.4.0



16
17
18
# File 'lib/command_kit/printing/tables/border_style.rb', line 16

def top_left_corner
  @top_left_corner
end

#top_right_cornerString (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.

Returns:

  • (String)

Since:

  • 0.4.0



31
32
33
# File 'lib/command_kit/printing/tables/border_style.rb', line 31

def top_right_corner
  @top_right_corner
end

#vertical_separatorString (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.

Returns:

  • (String)

Since:

  • 0.4.0



51
52
53
# File 'lib/command_kit/printing/tables/border_style.rb', line 51

def vertical_separator
  @vertical_separator
end