Class: Crummy::Configuration
- Inherits:
-
Object
- Object
- Crummy::Configuration
- Defined in:
- lib/crummy.rb
Instance Attribute Summary collapse
-
#first_class ⇒ Object
Returns the value of attribute first_class.
-
#format ⇒ Object
Returns the value of attribute format.
-
#html_list_right_separator ⇒ Object
Returns the value of attribute html_list_right_separator.
-
#html_list_separator ⇒ Object
Returns the value of attribute html_list_separator.
-
#html_right_separator ⇒ Object
Returns the value of attribute html_right_separator.
-
#html_separator ⇒ Object
Returns the value of attribute html_separator.
-
#last_class ⇒ Object
Returns the value of attribute last_class.
-
#last_crumb_linked ⇒ Object
Returns the value of attribute last_crumb_linked.
-
#li_class ⇒ Object
Returns the value of attribute li_class.
-
#links ⇒ Object
Returns the value of attribute links.
-
#microdata ⇒ Object
Returns the value of attribute microdata.
-
#right_side ⇒ Object
Returns the value of attribute right_side.
-
#skip_if_blank ⇒ Object
Returns the value of attribute skip_if_blank.
-
#truncate ⇒ Object
Returns the value of attribute truncate.
-
#ul_class ⇒ Object
Returns the value of attribute ul_class.
-
#ul_id ⇒ Object
Returns the value of attribute ul_id.
-
#xml_right_separator ⇒ Object
Returns the value of attribute xml_right_separator.
-
#xml_separator ⇒ Object
Returns the value of attribute xml_separator.
Instance Method Summary collapse
- #active_li_class ⇒ Object
- #active_li_class=(class_name) ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_class ⇒ Object
Returns the value of attribute first_class.
21 22 23 |
# File 'lib/crummy.rb', line 21 def first_class @first_class end |
#format ⇒ Object
Returns the value of attribute format.
12 13 14 |
# File 'lib/crummy.rb', line 12 def format @format end |
#html_list_right_separator ⇒ Object
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_separator ⇒ Object
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_separator ⇒ Object
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_separator ⇒ Object
Returns the value of attribute html_separator.
15 16 17 |
# File 'lib/crummy.rb', line 15 def html_separator @html_separator end |
#last_class ⇒ Object
Returns the value of attribute last_class.
22 23 24 |
# File 'lib/crummy.rb', line 22 def last_class @last_class end |
#last_crumb_linked ⇒ Object
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_class ⇒ Object
Returns the value of attribute li_class.
25 26 27 |
# File 'lib/crummy.rb', line 25 def li_class @li_class end |
#links ⇒ Object
Returns the value of attribute links.
13 14 15 |
# File 'lib/crummy.rb', line 13 def links @links end |
#microdata ⇒ Object
Returns the value of attribute microdata.
26 27 28 |
# File 'lib/crummy.rb', line 26 def microdata @microdata end |
#right_side ⇒ Object
Returns the value of attribute right_side.
29 30 31 |
# File 'lib/crummy.rb', line 29 def right_side @right_side end |
#skip_if_blank ⇒ Object
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 |
#truncate ⇒ Object
Returns the value of attribute truncate.
28 29 30 |
# File 'lib/crummy.rb', line 28 def truncate @truncate end |
#ul_class ⇒ Object
Returns the value of attribute ul_class.
24 25 26 |
# File 'lib/crummy.rb', line 24 def ul_class @ul_class end |
#ul_id ⇒ Object
Returns the value of attribute ul_id.
23 24 25 |
# File 'lib/crummy.rb', line 23 def ul_id @ul_id end |
#xml_right_separator ⇒ Object
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_separator ⇒ Object
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_class ⇒ Object
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 |