Class: Ehbrs::CookingBook::Build::RecipePage
- Defined in:
- lib/ehbrs/cooking_book/build/recipe_page.rb
Defined Under Namespace
Classes: Part
Instance Attribute Summary
Attributes inherited from BasePage
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
#parts ⇒ Object
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_basename ⇒ Object
11 12 13 |
# File 'lib/ehbrs/cooking_book/build/recipe_page.rb', line 11 def target_basename title.variableize end |