Class: Tabit::Config
- Inherits:
-
Object
- Object
- Tabit::Config
- Defined in:
- lib/tabit/config.rb
Instance Attribute Summary collapse
-
#active_class ⇒ Object
Returns the value of attribute active_class.
-
#active_detect ⇒ Object
Returns the value of attribute active_detect.
-
#builder_class ⇒ Object
Returns the value of attribute builder_class.
-
#divider_class ⇒ Object
Returns the value of attribute divider_class.
-
#heading_class ⇒ Object
Returns the value of attribute heading_class.
Instance Method Summary collapse
-
#initialize(&block) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(&block) ⇒ Config
Returns a new instance of Config.
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/tabit/config.rb', line 11 def initialize(&block) @builder_class = Tabit::Builder @active_detect = :exclusive @active_class = 'active' @heading_class = 'nav-header' @divider_class = 'divider' instance_eval(&block) if block_given? end |
Instance Attribute Details
#active_class ⇒ Object
Returns the value of attribute active_class.
7 8 9 |
# File 'lib/tabit/config.rb', line 7 def active_class @active_class end |
#active_detect ⇒ Object
Returns the value of attribute active_detect.
6 7 8 |
# File 'lib/tabit/config.rb', line 6 def active_detect @active_detect end |
#builder_class ⇒ Object
Returns the value of attribute builder_class.
4 5 6 |
# File 'lib/tabit/config.rb', line 4 def builder_class @builder_class end |
#divider_class ⇒ Object
Returns the value of attribute divider_class.
9 10 11 |
# File 'lib/tabit/config.rb', line 9 def divider_class @divider_class end |
#heading_class ⇒ Object
Returns the value of attribute heading_class.
8 9 10 |
# File 'lib/tabit/config.rb', line 8 def heading_class @heading_class end |