Class: Landable::NullPageDecorator
- Inherits:
-
PageDecorator
- Object
- PageDecorator
- Landable::NullPageDecorator
- Defined in:
- app/decorators/landable/null_page_decorator.rb
Instance Method Summary collapse
- #body ⇒ Object
-
#initialize ⇒ NullPageDecorator
constructor
A new instance of NullPageDecorator.
- #meta_tags ⇒ Object
- #path ⇒ Object
- #title ⇒ Object
Methods inherited from PageDecorator
Constructor Details
#initialize ⇒ NullPageDecorator
Returns a new instance of NullPageDecorator.
3 4 |
# File 'app/decorators/landable/null_page_decorator.rb', line 3 def initialize end |
Instance Method Details
#body ⇒ Object
22 23 24 |
# File 'app/decorators/landable/null_page_decorator.rb', line 22 def body '' end |
#meta_tags ⇒ Object
14 15 16 |
# File 'app/decorators/landable/null_page_decorator.rb', line 14 def '' end |
#path ⇒ Object
18 19 20 |
# File 'app/decorators/landable/null_page_decorator.rb', line 18 def path '' end |
#title ⇒ Object
6 7 8 9 10 11 12 |
# File 'app/decorators/landable/null_page_decorator.rb', line 6 def title # Obviously, this should instead be configured with Landable in some way, # such that you can register the titles you want everywhere. Or, of course, # a more reasonable way to bypass Landable entirely yet still use the # `landable` helper. Just waiting to tease out what features we need. content_tag('title', 'No current page; default title') end |