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