Class: Landable::NullPageDecorator

Inherits:
PageDecorator show all
Defined in:
app/decorators/landable/null_page_decorator.rb

Instance Method Summary collapse

Methods inherited from PageDecorator

#head_content, #page_name

Constructor Details

#initializeNullPageDecorator

Returns a new instance of NullPageDecorator.



3
4
# File 'app/decorators/landable/null_page_decorator.rb', line 3

def initialize
end

Instance Method Details

#bodyObject



22
23
24
# File 'app/decorators/landable/null_page_decorator.rb', line 22

def body
  ''
end

#meta_tagsObject



14
15
16
# File 'app/decorators/landable/null_page_decorator.rb', line 14

def meta_tags
  ''
end

#pathObject



18
19
20
# File 'app/decorators/landable/null_page_decorator.rb', line 18

def path
  ''
end

#titleObject



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.
  ('title', 'No current page; default title')
end