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.



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_classObject

Returns the value of attribute active_class.



7
8
9
# File 'lib/tabit/config.rb', line 7

def active_class
  @active_class
end

#active_detectObject

Returns the value of attribute active_detect.



6
7
8
# File 'lib/tabit/config.rb', line 6

def active_detect
  @active_detect
end

#builder_classObject

Returns the value of attribute builder_class.



4
5
6
# File 'lib/tabit/config.rb', line 4

def builder_class
  @builder_class
end

#divider_classObject

Returns the value of attribute divider_class.



9
10
11
# File 'lib/tabit/config.rb', line 9

def divider_class
  @divider_class
end

#heading_classObject

Returns the value of attribute heading_class.



8
9
10
# File 'lib/tabit/config.rb', line 8

def heading_class
  @heading_class
end