class Tabulous::Config

Attributes

active_tab_clickable[RW]
active_tab_color[RW]
background_color[RW]
hover_tab_color[RW]
inactive_tab_color[RW]
inactive_text_color[RW]
render_subtabs_when_empty[RW]
renderer[R]
text_color[RW]
use_css_scaffolding[RW]
when_action_has_no_tab[R]

Public Class Methods

renderer=(val) click to toggle source
# File lib/tabulous/config.rb, line 41
def renderer=(val)
  unless val.is_a?(String) || val.is_a?(Symbol)
    raise ImproperValueError, "renderer must be a string or a symbol"
  end
  @renderer = val
end
set_defaults() click to toggle source
# 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
when_action_has_no_tab=(val) click to toggle source
# File lib/tabulous/config.rb, line 48
def when_action_has_no_tab=(val)
  unless [:do_not_render, :render, :raise_error].include?(val)
    raise ImproperValueError, "when_action_has_no_tab must be either :render, :do_not_render, or :raise_error"
  end
  @when_action_has_no_tab = val
end