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.



31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/crummy.rb', line 31

def initialize
  @format = :html
  @html_separator = " » ".html_safe
  @html_right_separator = " » ".html_safe
  @xml_separator = "crumb"
  @xml_right_separator = "crumb"
  @html_list_separator = ''
  @html_list_right_separator = ''
  @skip_if_blank = true
  @links = true
  @first_class = ''
  @last_class = ''
  @ul_id = ''
  @ul_class = ''
  @li_class = ''
  @microdata = false
  @last_crumb_linked = true
  @truncate = nil
  @right_side = false
end

Instance Attribute Details

#first_classObject

Returns the value of attribute first_class.



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

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_right_separatorObject

Returns the value of attribute html_list_right_separator.



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

def html_list_right_separator
  @html_list_right_separator
end

#html_list_separatorObject

Returns the value of attribute html_list_separator.



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

def html_list_separator
  @html_list_separator
end

#html_right_separatorObject

Returns the value of attribute html_right_separator.



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

def html_right_separator
  @html_right_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.



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

def last_class
  @last_class
end

#last_crumb_linkedObject

Returns the value of attribute last_crumb_linked.



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

def last_crumb_linked
  @last_crumb_linked
end

#li_classObject

Returns the value of attribute li_class.



25
26
27
# File 'lib/crummy.rb', line 25

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

#microdataObject

Returns the value of attribute microdata.



26
27
28
# File 'lib/crummy.rb', line 26

def microdata
  @microdata
end

#right_sideObject

Returns the value of attribute right_side.



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

def right_side
  @right_side
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

#truncateObject

Returns the value of attribute truncate.



28
29
30
# File 'lib/crummy.rb', line 28

def truncate
  @truncate
end

#ul_classObject

Returns the value of attribute ul_class.



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

def ul_class
  @ul_class
end

#ul_idObject

Returns the value of attribute ul_id.



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

def ul_id
  @ul_id
end

#xml_right_separatorObject

Returns the value of attribute xml_right_separator.



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

def xml_right_separator
  @xml_right_separator
end

#xml_separatorObject

Returns the value of attribute xml_separator.



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

def xml_separator
  @xml_separator
end

Instance Method Details

#active_li_classObject



56
57
58
# File 'lib/crummy.rb', line 56

def active_li_class
  puts "CRUMMY: The 'active_li_class' option is DEPRECATED and will be removed from a future version"
end

#active_li_class=(class_name) ⇒ Object



52
53
54
# File 'lib/crummy.rb', line 52

def active_li_class=(class_name)
  puts "CRUMMY: The 'active_li_class' option is DEPRECATED and will be removed from a future version"
end