Class: RenderTable::Configuration
- Inherits:
-
Object
- Object
- RenderTable::Configuration
- Defined in:
- lib/render_table/configuration.rb
Instance Attribute Summary collapse
-
#cell_value ⇒ Object
Returns the value of attribute cell_value.
-
#html ⇒ Object
Returns the value of attribute html.
-
#table_class ⇒ Object
Returns the value of attribute table_class.
-
#table_id ⇒ Object
Returns the value of attribute table_id.
Class Method Summary collapse
- .default_cell_value ⇒ Object
- .default_html ⇒ Object
- .default_table_class ⇒ Object
- .default_table_id ⇒ Object
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
4 5 6 7 8 9 |
# 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 |
Instance Attribute Details
#cell_value ⇒ Object
Returns the value of attribute cell_value.
2 3 4 |
# File 'lib/render_table/configuration.rb', line 2 def cell_value @cell_value end |
#html ⇒ Object
Returns the value of attribute html.
2 3 4 |
# File 'lib/render_table/configuration.rb', line 2 def html @html end |
#table_class ⇒ Object
Returns the value of attribute table_class.
2 3 4 |
# File 'lib/render_table/configuration.rb', line 2 def table_class @table_class end |
#table_id ⇒ Object
Returns the value of attribute table_id.
2 3 4 |
# File 'lib/render_table/configuration.rb', line 2 def table_id @table_id end |
Class Method Details
.default_cell_value ⇒ Object
33 34 35 |
# File 'lib/render_table/configuration.rb', line 33 def default_cell_value '---' end |
.default_html ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/render_table/configuration.rb', line 12 def default_html { rows: { classes: {}, ids: {} }, cells: { classes: {}, ids: {} } } end |
.default_table_class ⇒ Object
29 30 31 |
# File 'lib/render_table/configuration.rb', line 29 def default_table_class '' end |
.default_table_id ⇒ Object
25 26 27 |
# File 'lib/render_table/configuration.rb', line 25 def default_table_id '' end |