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.
-
#active_scope ⇒ Object
Returns the value of attribute active_scope.
-
#builder_class ⇒ Object
Returns the value of attribute builder_class.
-
#caret_element ⇒ Object
Returns the value of attribute caret_element.
-
#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.
36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/tabit/config.rb', line 36 def initialize(&block) self.builder_class = Tabit::Builder self.caret_element = :b self.active_scope = :outer self.active_detect = :exclusive self.active_class = "active" self.heading_class = "nav-header" self.divider_class = "divider" instance_eval(&block) if block_given? end |
Instance Attribute Details
#active_class ⇒ Object
Returns the value of attribute active_class.
32 33 34 |
# File 'lib/tabit/config.rb', line 32 def active_class @active_class end |
#active_detect ⇒ Object
Returns the value of attribute active_detect.
31 32 33 |
# File 'lib/tabit/config.rb', line 31 def active_detect @active_detect end |
#active_scope ⇒ Object
Returns the value of attribute active_scope.
30 31 32 |
# File 'lib/tabit/config.rb', line 30 def active_scope @active_scope end |
#builder_class ⇒ Object
Returns the value of attribute builder_class.
27 28 29 |
# File 'lib/tabit/config.rb', line 27 def builder_class @builder_class end |
#caret_element ⇒ Object
Returns the value of attribute caret_element.
29 30 31 |
# File 'lib/tabit/config.rb', line 29 def caret_element @caret_element end |
#divider_class ⇒ Object
Returns the value of attribute divider_class.
34 35 36 |
# File 'lib/tabit/config.rb', line 34 def divider_class @divider_class end |
#heading_class ⇒ Object
Returns the value of attribute heading_class.
33 34 35 |
# File 'lib/tabit/config.rb', line 33 def heading_class @heading_class end |