Class: Ehbrs::CookingBook::Build::RecipePage

Inherits:
BasePage
  • Object
show all
Defined in:
lib/ehbrs/cooking_book/build/recipe_page.rb

Defined Under Namespace

Classes: Part

Instance Attribute Summary

Attributes inherited from BasePage

#parent

Instance Method Summary collapse

Methods inherited from BasePage

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

Constructor Details

This class inherits a constructor from Ehbrs::CookingBook::Build::BasePage

Instance Method Details

#partsObject



15
16
17
# File 'lib/ehbrs/cooking_book/build/recipe_page.rb', line 15

def parts
  @parts ||= super.map { |e| Part.new(e) }
end

#target_basenameObject



11
12
13
# File 'lib/ehbrs/cooking_book/build/recipe_page.rb', line 11

def target_basename
  title.variableize
end