Class: Crumpet::Configuration
- Inherits:
-
Object
- Object
- Crumpet::Configuration
- Defined in:
- lib/crumpet/configuration.rb
Instance Attribute Summary collapse
-
#container ⇒ Object
Returns the value of attribute container.
-
#default_container_class ⇒ Object
Returns the value of attribute default_container_class.
-
#default_crumb_class ⇒ Object
Returns the value of attribute default_crumb_class.
-
#default_wrapper_class ⇒ Object
Returns the value of attribute default_wrapper_class.
-
#escape ⇒ Object
Returns the value of attribute escape.
-
#first_crumb_class ⇒ Object
Returns the value of attribute first_crumb_class.
-
#format ⇒ Object
Returns the value of attribute format.
-
#last_crumb_class ⇒ Object
Returns the value of attribute last_crumb_class.
-
#link ⇒ Object
Returns the value of attribute link.
-
#link_last_crumb ⇒ Object
Returns the value of attribute link_last_crumb.
-
#render_when_blank ⇒ Object
Returns the value of attribute render_when_blank.
-
#separator ⇒ Object
Returns the value of attribute separator.
-
#truncate ⇒ Object
Returns the value of attribute truncate.
-
#wrapper ⇒ Object
Returns the value of attribute wrapper.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/crumpet/configuration.rb', line 18 def initialize @format = :html @render_when_blank = true @link = true @separator = " » ".html_safe @default_crumb_class = nil @first_crumb_class = nil @last_crumb_class = nil @link_last_crumb = true @truncate = nil @escape = true @wrapper = nil @default_wrapper_class = nil @container = nil @default_container_class = nil end |
Instance Attribute Details
#container ⇒ Object
Returns the value of attribute container.
15 16 17 |
# File 'lib/crumpet/configuration.rb', line 15 def container @container end |
#default_container_class ⇒ Object
Returns the value of attribute default_container_class.
16 17 18 |
# File 'lib/crumpet/configuration.rb', line 16 def default_container_class @default_container_class end |
#default_crumb_class ⇒ Object
Returns the value of attribute default_crumb_class.
7 8 9 |
# File 'lib/crumpet/configuration.rb', line 7 def default_crumb_class @default_crumb_class end |
#default_wrapper_class ⇒ Object
Returns the value of attribute default_wrapper_class.
14 15 16 |
# File 'lib/crumpet/configuration.rb', line 14 def default_wrapper_class @default_wrapper_class end |
#escape ⇒ Object
Returns the value of attribute escape.
12 13 14 |
# File 'lib/crumpet/configuration.rb', line 12 def escape @escape end |
#first_crumb_class ⇒ Object
Returns the value of attribute first_crumb_class.
8 9 10 |
# File 'lib/crumpet/configuration.rb', line 8 def first_crumb_class @first_crumb_class end |
#format ⇒ Object
Returns the value of attribute format.
3 4 5 |
# File 'lib/crumpet/configuration.rb', line 3 def format @format end |
#last_crumb_class ⇒ Object
Returns the value of attribute last_crumb_class.
9 10 11 |
# File 'lib/crumpet/configuration.rb', line 9 def last_crumb_class @last_crumb_class end |
#link ⇒ Object
Returns the value of attribute link.
5 6 7 |
# File 'lib/crumpet/configuration.rb', line 5 def link @link end |
#link_last_crumb ⇒ Object
Returns the value of attribute link_last_crumb.
10 11 12 |
# File 'lib/crumpet/configuration.rb', line 10 def link_last_crumb @link_last_crumb end |
#render_when_blank ⇒ Object
Returns the value of attribute render_when_blank.
4 5 6 |
# File 'lib/crumpet/configuration.rb', line 4 def render_when_blank @render_when_blank end |
#separator ⇒ Object
Returns the value of attribute separator.
6 7 8 |
# File 'lib/crumpet/configuration.rb', line 6 def separator @separator end |
#truncate ⇒ Object
Returns the value of attribute truncate.
11 12 13 |
# File 'lib/crumpet/configuration.rb', line 11 def truncate @truncate end |
#wrapper ⇒ Object
Returns the value of attribute wrapper.
13 14 15 |
# File 'lib/crumpet/configuration.rb', line 13 def wrapper @wrapper end |