Sha256: 7e6f7b111c63aaa6195a4c0a58045facb0374e34a38a0f891a114ffcc2ef9e15

Contents?: true

Size: 704 Bytes

Versions: 1

Compression:

Stored size: 704 Bytes

Contents

class RenderTable::Configuration
  attr_accessor :table_id, :table_class, :html, :cell_value

  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

  class << self
    def default_html
      {
        rows: {
          classes: {},
          ids: {}
        },
        cells: {
          classes: {},
          ids: {}
        }
      }
    end

    def default_table_id
      ''
    end

    def default_table_class
      ''
    end

    def default_cell_value
      '---'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
render_table-1.1.1 lib/render_table/configuration.rb