Class: Tabit::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/tabit/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_classObject

Returns the value of attribute active_class.



32
33
34
# File 'lib/tabit/config.rb', line 32

def active_class
  @active_class
end

#active_detectObject

Returns the value of attribute active_detect.



31
32
33
# File 'lib/tabit/config.rb', line 31

def active_detect
  @active_detect
end

#active_scopeObject

Returns the value of attribute active_scope.



30
31
32
# File 'lib/tabit/config.rb', line 30

def active_scope
  @active_scope
end

#builder_classObject

Returns the value of attribute builder_class.



27
28
29
# File 'lib/tabit/config.rb', line 27

def builder_class
  @builder_class
end

#caret_elementObject

Returns the value of attribute caret_element.



29
30
31
# File 'lib/tabit/config.rb', line 29

def caret_element
  @caret_element
end

#divider_classObject

Returns the value of attribute divider_class.



34
35
36
# File 'lib/tabit/config.rb', line 34

def divider_class
  @divider_class
end

#heading_classObject

Returns the value of attribute heading_class.



33
34
35
# File 'lib/tabit/config.rb', line 33

def heading_class
  @heading_class
end