Class: EhbrsRubyUtils::CookingBook::Build::IndexPage

Inherits:
BasePage
  • Object
show all
Defined in:
lib/ehbrs_ruby_utils/cooking_book/build/index_page.rb

Constant Summary collapse

TITLE =
'Início'

Instance Attribute Summary

Attributes inherited from BasePage

#parent

Instance Method Summary collapse

Methods inherited from BasePage

#build, #erb_result, #href, #inner_content, #target_content, #target_path

Constructor Details

#initialize(parent) ⇒ IndexPage

Returns a new instance of IndexPage.



9
10
11
# File 'lib/ehbrs_ruby_utils/cooking_book/build/index_page.rb', line 9

def initialize(parent)
  super(parent, nil)
end

Instance Method Details

#target_basenameObject



13
14
15
# File 'lib/ehbrs_ruby_utils/cooking_book/build/index_page.rb', line 13

def target_basename
  'index'
end

#titleObject



17
18
19
# File 'lib/ehbrs_ruby_utils/cooking_book/build/index_page.rb', line 17

def title
  TITLE
end