class RenderTable::Configuration

Attributes

cell_value[RW]
html[RW]
table_class[RW]
table_id[RW]

Public Class Methods

default_cell_value() click to toggle source
# File lib/render_table/configuration.rb, line 33
def default_cell_value
  '---'
end
default_html() click to toggle source
# File lib/render_table/configuration.rb, line 12
def default_html
  {
    rows: {
      classes: {},
      ids: {}
    },
    cells: {
      classes: {},
      ids: {}
    }
  }
end
default_table_class() click to toggle source
# File lib/render_table/configuration.rb, line 29
def default_table_class
  ''
end
default_table_id() click to toggle source
# File lib/render_table/configuration.rb, line 25
def default_table_id
  ''
end
new() click to toggle source
# File lib/render_table/configuration.rb, line 4
def initialize
  @table_id = RenderTable::Configuration.default_table_id
  @table_class = RenderTable::Configuration.default_table_class
  @html = RenderTable::Configuration.default_html
  @cell_value = RenderTable::Configuration.default_cell_value
end