Class: HtmlTables::Configuration

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/html_tables/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_classesObject

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_procObject

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_shortcutsObject

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