Class: TabMenu::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/tab_menu/configuration.rb

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ Configuration

Returns a new instance of Configuration.



3
4
5
6
# File 'lib/tab_menu/configuration.rb', line 3

def initialize(&block)
  @active_class = "current"
  instance_eval(&block) if block_given?
end

Instance Method Details

#active_classObject



8
9
10
# File 'lib/tab_menu/configuration.rb', line 8

def active_class
  @active_class
end

#active_class=(css_class) ⇒ Object



12
13
14
# File 'lib/tab_menu/configuration.rb', line 12

def active_class=(css_class)
  @active_class = css_class
end