Class: Railbow::Table::Theme

Inherits:
Object
  • Object
show all
Defined in:
lib/railbow/table/theme.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_paddingObject (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_separatorObject (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_cellObject (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_separatorObject (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_separatorObject (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_separatorObject (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_separatorObject (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