Class: Crummy::Configuration
- Inherits:
-
Object
- Object
- Crummy::Configuration
- Defined in:
- lib/crummy.rb
Instance Attribute Summary collapse
-
#active_li_class ⇒ Object
Returns the value of attribute active_li_class.
-
#first_class ⇒ Object
Returns the value of attribute first_class.
-
#format ⇒ Object
Returns the value of attribute format.
-
#html_list_separator ⇒ Object
Returns the value of attribute html_list_separator.
-
#html_separator ⇒ Object
Returns the value of attribute html_separator.
-
#last_class ⇒ Object
Returns the value of attribute last_class.
-
#li_class ⇒ Object
Returns the value of attribute li_class.
-
#links ⇒ Object
Returns the value of attribute links.
-
#skip_if_blank ⇒ Object
Returns the value of attribute skip_if_blank.
-
#ul_class ⇒ Object
Returns the value of attribute ul_class.
-
#ul_id ⇒ Object
Returns the value of attribute ul_id.
-
#xml_separator ⇒ Object
Returns the value of attribute xml_separator.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_class ⇒ Object
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_class ⇒ Object
Returns the value of attribute first_class.
18 19 20 |
# File 'lib/crummy.rb', line 18 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_separator ⇒ Object
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_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.
19 20 21 |
# File 'lib/crummy.rb', line 19 def last_class @last_class end |
#li_class ⇒ Object
Returns the value of attribute li_class.
22 23 24 |
# File 'lib/crummy.rb', line 22 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 |
#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 |
#ul_class ⇒ Object
Returns the value of attribute ul_class.
21 22 23 |
# File 'lib/crummy.rb', line 21 def ul_class @ul_class end |
#ul_id ⇒ Object
Returns the value of attribute ul_id.
20 21 22 |
# File 'lib/crummy.rb', line 20 def ul_id @ul_id end |
#xml_separator ⇒ Object
Returns the value of attribute xml_separator.
16 17 18 |
# File 'lib/crummy.rb', line 16 def xml_separator @xml_separator end |