Class: Crummy::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/crummy.rb', line 25

def initialize
  @format = :html
  @html_separator = " » "
  @xml_separator = "crumb"
  @html_list_separator = ''
  @skip_if_blank = true
  @links = true
  @first_class = ''
  @last_class = ''
  @ul_id = ''
  @ul_class = ''
  @li_class = ''
  @active_li_class = ''
end

Instance Attribute Details

#active_li_classObject

Returns the value of attribute active_li_class.



23
24
25
# File 'lib/crummy.rb', line 23

def active_li_class
  @active_li_class
end

#first_classObject

Returns the value of attribute first_class.



18
19
20
# File 'lib/crummy.rb', line 18

def first_class
  @first_class
end

#formatObject

Returns the value of attribute format.



12
13
14
# File 'lib/crummy.rb', line 12

def format
  @format
end

#html_list_separatorObject

Returns the value of attribute html_list_separator.



17
18
19
# File 'lib/crummy.rb', line 17

def html_list_separator
  @html_list_separator
end

#html_separatorObject

Returns the value of attribute html_separator.



15
16
17
# File 'lib/crummy.rb', line 15

def html_separator
  @html_separator
end

#last_classObject

Returns the value of attribute last_class.



19
20
21
# File 'lib/crummy.rb', line 19

def last_class
  @last_class
end

#li_classObject

Returns the value of attribute li_class.



22
23
24
# File 'lib/crummy.rb', line 22

def li_class
  @li_class
end

Returns the value of attribute links.



13
14
15
# File 'lib/crummy.rb', line 13

def links
  @links
end

#skip_if_blankObject

Returns the value of attribute skip_if_blank.



14
15
16
# File 'lib/crummy.rb', line 14

def skip_if_blank
  @skip_if_blank
end

#ul_classObject

Returns the value of attribute ul_class.



21
22
23
# File 'lib/crummy.rb', line 21

def ul_class
  @ul_class
end

#ul_idObject

Returns the value of attribute ul_id.



20
21
22
# File 'lib/crummy.rb', line 20

def ul_id
  @ul_id
end

#xml_separatorObject

Returns the value of attribute xml_separator.



16
17
18
# File 'lib/crummy.rb', line 16

def xml_separator
  @xml_separator
end