Sha256: eedd050b75fddd9eafbad1174af905e0e3232d4d948a44c3b93fc1194d9abd8a

Contents?: true

Size: 463 Bytes

Versions: 17

Compression:

Stored size: 463 Bytes

Contents

# frozen_string_literal: true

module Kitchen::Directions::BookAnswerKeyContainer
  class V1
    renderable

    def bake(book:, solutions_plural: true)
      @metadata = book.metadata.children_to_keep.copy
      @solutions_or_solution = solutions_plural ? 'solutions' : 'solution'
      book.body.append(child: render(file: 'eob_answer_key_outer_container.xhtml.erb'))
      book.body.first("div.os-eob.os-#{@solutions_or_solution}-container")
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
openstax_kitchen-14.0.0 lib/kitchen/directions/book_answer_key_container/v1.rb
openstax_kitchen-13.0.0 lib/kitchen/directions/book_answer_key_container/v1.rb
openstax_kitchen-12.2.0 lib/kitchen/directions/book_answer_key_container/v1.rb
openstax_kitchen-12.1.0 lib/kitchen/directions/book_answer_key_container/v1.rb
openstax_kitchen-12.0.0 lib/kitchen/directions/book_answer_key_container/v1.rb
openstax_kitchen-11.2.0 lib/kitchen/directions/book_answer_key_container/v1.rb
openstax_kitchen-11.1.0 lib/kitchen/directions/book_answer_key_container/v1.rb
openstax_kitchen-11.0.0 lib/kitchen/directions/book_answer_key_container/v1.rb
openstax_kitchen-10.0.0 lib/kitchen/directions/book_answer_key_container/v1.rb
openstax_kitchen-9.2.0 lib/kitchen/directions/book_answer_key_container/v1.rb
openstax_kitchen-9.1.0 lib/kitchen/directions/book_answer_key_container/v1.rb
openstax_kitchen-9.0.0 lib/kitchen/directions/book_answer_key_container/v1.rb
openstax_kitchen-8.0.1 lib/kitchen/directions/book_answer_key_container/v1.rb
openstax_kitchen-8.0.0 lib/kitchen/directions/book_answer_key_container/v1.rb
openstax_kitchen-7.0.0 lib/kitchen/directions/book_answer_key_container/v1.rb
openstax_kitchen-6.1.0 lib/kitchen/directions/book_answer_key_container/v1.rb
openstax_kitchen-6.0.0 lib/kitchen/directions/book_answer_key_container/v1.rb