Class: Locomotive::Steam::Decorators::PageDecorator
- Inherits:
-
TemplateDecorator
- Object
- SimpleDelegator
- I18nDecorator
- TemplateDecorator
- Locomotive::Steam::Decorators::PageDecorator
- Defined in:
- lib/locomotive/steam/decorators/page_decorator.rb
Instance Attribute Summary
Attributes inherited from I18nDecorator
#__default_locale__, #__frozen_locale__, #__locale__, #__localized_attributes__
Instance Method Summary collapse
Methods inherited from TemplateDecorator
Methods inherited from I18nDecorator
#__freeze_locale__, #__get_localized_value__, #__is_localized_attribute__, #__set_localized_value__, #__unfreeze_locale__, #__with_default_locale__, #__with_locale__, #as_json, decorate, #initialize, #inspect, #method_missing, #to_hash, #to_json
Constructor Details
This class inherits a constructor from Locomotive::Steam::Decorators::I18nDecorator
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Locomotive::Steam::Decorators::I18nDecorator
Instance Method Details
#redirect? ⇒ Boolean
9 10 11 |
# File 'lib/locomotive/steam/decorators/page_decorator.rb', line 9 def redirect? redirect.nil? ? redirect_url.present? : redirect end |