Class: Tabulous::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/tabulous/config.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.active_tab_clickableObject

Returns the value of attribute active_tab_clickable.



5
6
7
# File 'lib/tabulous/config.rb', line 5

def active_tab_clickable
  @active_tab_clickable
end

.active_tab_colorObject

Returns the value of attribute active_tab_color.



5
6
7
# File 'lib/tabulous/config.rb', line 5

def active_tab_color
  @active_tab_color
end

.background_colorObject

Returns the value of attribute background_color.



5
6
7
# File 'lib/tabulous/config.rb', line 5

def background_color
  @background_color
end

.hover_tab_colorObject

Returns the value of attribute hover_tab_color.



5
6
7
# File 'lib/tabulous/config.rb', line 5

def hover_tab_color
  @hover_tab_color
end

.inactive_tab_colorObject

Returns the value of attribute inactive_tab_color.



5
6
7
# File 'lib/tabulous/config.rb', line 5

def inactive_tab_color
  @inactive_tab_color
end

.inactive_text_colorObject

Returns the value of attribute inactive_text_color.



5
6
7
# File 'lib/tabulous/config.rb', line 5

def inactive_text_color
  @inactive_text_color
end

.render_subtabs_when_emptyObject

Returns the value of attribute render_subtabs_when_empty.



5
6
7
# File 'lib/tabulous/config.rb', line 5

def render_subtabs_when_empty
  @render_subtabs_when_empty
end

.rendererObject

Returns the value of attribute renderer.



5
6
7
# File 'lib/tabulous/config.rb', line 5

def renderer
  @renderer
end

.text_colorObject

Returns the value of attribute text_color.



5
6
7
# File 'lib/tabulous/config.rb', line 5

def text_color
  @text_color
end

.use_css_scaffoldingObject

Returns the value of attribute use_css_scaffolding.



5
6
7
# File 'lib/tabulous/config.rb', line 5

def use_css_scaffolding
  @use_css_scaffolding
end

.when_action_has_no_tabObject

Returns the value of attribute when_action_has_no_tab.



5
6
7
# File 'lib/tabulous/config.rb', line 5

def when_action_has_no_tab
  @when_action_has_no_tab
end

Class Method Details

.set_defaultsObject



27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/tabulous/config.rb', line 27

def set_defaults
  @renderer = :default
  @active_tab_clickable = true
  @when_action_has_no_tab = :do_not_render
  @render_subtabs_when_empty = false
  @use_css_scaffolding = false
  @background_color = '#ccc'
  @text_color = '#444'
  @active_tab_color = '#fff'
  @hover_tab_color = '#ddd'
  @inactive_tab_color = '#aaa'
  @inactive_text_color = '#888'
end