Sha256: 5e3d81f353fe0430197a5216a69b865648cabaa7d649fd5252a688fe4be05d27

Contents?: true

Size: 614 Bytes

Versions: 14

Compression:

Stored size: 614 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/core_ext'
require 'ehbrs_ruby_utils/cooking_book/build/base_page'

module EhbrsRubyUtils
  module CookingBook
    class Build
      class RecipePage < ::EhbrsRubyUtils::CookingBook::Build::BasePage
        def target_basename
          title.variableize
        end

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

        class Part < SimpleDelegator
          def content
            ::EhbrsRubyUtils::CookingBook::Build::RecipePage.erb_template('part.html.erb', self)
          end
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
ehbrs_ruby_utils-0.44.3 lib/ehbrs_ruby_utils/cooking_book/build/recipe_page.rb
ehbrs_ruby_utils-0.44.2 lib/ehbrs_ruby_utils/cooking_book/build/recipe_page.rb
ehbrs_ruby_utils-0.44.1 lib/ehbrs_ruby_utils/cooking_book/build/recipe_page.rb
ehbrs_ruby_utils-0.44.0 lib/ehbrs_ruby_utils/cooking_book/build/recipe_page.rb
ehbrs_ruby_utils-0.41.1 lib/ehbrs_ruby_utils/cooking_book/build/recipe_page.rb
ehbrs_ruby_utils-0.41.0 lib/ehbrs_ruby_utils/cooking_book/build/recipe_page.rb
ehbrs_ruby_utils-0.40.0 lib/ehbrs_ruby_utils/cooking_book/build/recipe_page.rb
ehbrs_ruby_utils-0.39.0 lib/ehbrs_ruby_utils/cooking_book/build/recipe_page.rb
ehbrs_ruby_utils-0.38.0 lib/ehbrs_ruby_utils/cooking_book/build/recipe_page.rb
ehbrs_ruby_utils-0.37.0 lib/ehbrs_ruby_utils/cooking_book/build/recipe_page.rb
ehbrs_ruby_utils-0.36.1 lib/ehbrs_ruby_utils/cooking_book/build/recipe_page.rb
ehbrs_ruby_utils-0.36.0 lib/ehbrs_ruby_utils/cooking_book/build/recipe_page.rb
ehbrs_ruby_utils-0.35.0 lib/ehbrs_ruby_utils/cooking_book/build/recipe_page.rb
ehbrs_ruby_utils-0.33.0 lib/ehbrs_ruby_utils/cooking_book/build/recipe_page.rb