Class: Enjoy::Pages::Configuration
- Inherits:
-
Object
- Object
- Enjoy::Pages::Configuration
- Defined in:
- lib/enjoy/pages/configuration.rb
Instance Attribute Summary collapse
-
#breadcrumbs_on_rails_support ⇒ Object
Returns the value of attribute breadcrumbs_on_rails_support.
-
#localize ⇒ Object
Returns the value of attribute localize.
-
#menu_max_depth ⇒ Object
Returns the value of attribute menu_max_depth.
-
#seo_support ⇒ Object
Returns the value of attribute seo_support.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
22 23 24 25 26 27 28 29 30 |
# File 'lib/enjoy/pages/configuration.rb', line 22 def initialize @menu_max_depth = 2 @seo_support = defined? Enjoy::Seo @localize = Enjoy.config.localize @breadcrumbs_on_rails_support = defined?(BreadcrumbsOnRails) end |
Instance Attribute Details
#breadcrumbs_on_rails_support ⇒ Object
Returns the value of attribute breadcrumbs_on_rails_support.
20 21 22 |
# File 'lib/enjoy/pages/configuration.rb', line 20 def @breadcrumbs_on_rails_support end |
#localize ⇒ Object
Returns the value of attribute localize.
18 19 20 |
# File 'lib/enjoy/pages/configuration.rb', line 18 def localize @localize end |
#menu_max_depth ⇒ Object
Returns the value of attribute menu_max_depth.
14 15 16 |
# File 'lib/enjoy/pages/configuration.rb', line 14 def @menu_max_depth end |
#seo_support ⇒ Object
Returns the value of attribute seo_support.
16 17 18 |
# File 'lib/enjoy/pages/configuration.rb', line 16 def seo_support @seo_support end |