Class: EhbrsRubyUtils::CookingBook::Build::RecipePage

Inherits:
BasePage
  • Object
show all
Defined in:
lib/ehbrs_ruby_utils/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 EhbrsRubyUtils::CookingBook::Build::BasePage

Instance Method Details

#partsObject



14
15
16
# File 'lib/ehbrs_ruby_utils/cooking_book/build/recipe_page.rb', line 14

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

#target_basenameObject



10
11
12
# File 'lib/ehbrs_ruby_utils/cooking_book/build/recipe_page.rb', line 10

def target_basename
  title.variableize
end