Class: HtmlTables::Configuration
- Inherits:
-
Object
- Object
- HtmlTables::Configuration
- Includes:
- Singleton
- Defined in:
- lib/html_tables/config.rb
Instance Attribute Summary collapse
-
#default_table_classes ⇒ Object
Returns the value of attribute default_table_classes.
-
#url_generator_proc ⇒ Object
Returns the value of attribute url_generator_proc.
-
#use_entity_shortcuts ⇒ Object
Returns the value of attribute use_entity_shortcuts.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
13 14 15 16 17 |
# File 'lib/html_tables/config.rb', line 13 def initialize @use_entity_shortcuts = ::Rails.env.development? @url_generator_proc = -> obj { url_for(obj) } @default_table_classes = %w(table table-striped table-bordered) end |
Instance Attribute Details
#default_table_classes ⇒ Object
Returns the value of attribute default_table_classes.
11 12 13 |
# File 'lib/html_tables/config.rb', line 11 def default_table_classes @default_table_classes end |
#url_generator_proc ⇒ Object
Returns the value of attribute url_generator_proc.
11 12 13 |
# File 'lib/html_tables/config.rb', line 11 def url_generator_proc @url_generator_proc end |
#use_entity_shortcuts ⇒ Object
Returns the value of attribute use_entity_shortcuts.
11 12 13 |
# File 'lib/html_tables/config.rb', line 11 def use_entity_shortcuts @use_entity_shortcuts end |