Class: Railbow::Table::Theme
- Inherits:
-
Object
- Object
- Railbow::Table::Theme
- Defined in:
- lib/railbow/table/theme.rb
Instance Attribute Summary collapse
-
#cell_padding ⇒ Object
readonly
Returns the value of attribute cell_padding.
-
#col_separator ⇒ Object
readonly
Returns the value of attribute col_separator.
-
#format_header_cell ⇒ Object
readonly
Returns the value of attribute format_header_cell.
-
#format_separator ⇒ Object
readonly
Returns the value of attribute format_separator.
-
#header_col_separator ⇒ Object
readonly
Returns the value of attribute header_col_separator.
-
#tick_cross_separator ⇒ Object
readonly
Returns the value of attribute tick_cross_separator.
-
#tick_separator ⇒ Object
readonly
Returns the value of attribute tick_separator.
Instance Method Summary collapse
-
#initialize(col_separator:, header_col_separator:, cell_padding:, format_header_cell:, format_separator: nil, tick_separator: nil, tick_cross_separator: nil) ⇒ Theme
constructor
A new instance of Theme.
Constructor Details
#initialize(col_separator:, header_col_separator:, cell_padding:, format_header_cell:, format_separator: nil, tick_separator: nil, tick_cross_separator: nil) ⇒ Theme
Returns a new instance of Theme.
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/railbow/table/theme.rb', line 10 def initialize(col_separator:, header_col_separator:, cell_padding:, format_header_cell:, format_separator: nil, tick_separator: nil, tick_cross_separator: nil) @col_separator = col_separator @tick_separator = tick_separator || col_separator @tick_cross_separator = tick_cross_separator || @tick_separator @header_col_separator = header_col_separator @cell_padding = cell_padding @format_header_cell = format_header_cell @format_separator = format_separator end |
Instance Attribute Details
#cell_padding ⇒ Object (readonly)
Returns the value of attribute cell_padding.
6 7 8 |
# File 'lib/railbow/table/theme.rb', line 6 def cell_padding @cell_padding end |
#col_separator ⇒ Object (readonly)
Returns the value of attribute col_separator.
6 7 8 |
# File 'lib/railbow/table/theme.rb', line 6 def col_separator @col_separator end |
#format_header_cell ⇒ Object (readonly)
Returns the value of attribute format_header_cell.
6 7 8 |
# File 'lib/railbow/table/theme.rb', line 6 def format_header_cell @format_header_cell end |
#format_separator ⇒ Object (readonly)
Returns the value of attribute format_separator.
6 7 8 |
# File 'lib/railbow/table/theme.rb', line 6 def format_separator @format_separator end |
#header_col_separator ⇒ Object (readonly)
Returns the value of attribute header_col_separator.
6 7 8 |
# File 'lib/railbow/table/theme.rb', line 6 def header_col_separator @header_col_separator end |
#tick_cross_separator ⇒ Object (readonly)
Returns the value of attribute tick_cross_separator.
6 7 8 |
# File 'lib/railbow/table/theme.rb', line 6 def tick_cross_separator @tick_cross_separator end |
#tick_separator ⇒ Object (readonly)
Returns the value of attribute tick_separator.
6 7 8 |
# File 'lib/railbow/table/theme.rb', line 6 def tick_separator @tick_separator end |