Class: TabMenu::Configuration
- Inherits:
-
Object
- Object
- TabMenu::Configuration
- Defined in:
- lib/tab_menu/configuration.rb
Instance Method Summary collapse
- #active_class ⇒ Object
- #active_class=(css_class) ⇒ Object
-
#initialize(&block) ⇒ Configuration
constructor
A new instance of Configuration.
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_class ⇒ Object
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 |