Class: Kitchen::Directions::BakeRexWrappers::V1

Inherits:
Object
  • Object
show all
Defined in:
lib/kitchen/directions/bake_rex_wrappers/v1.rb

Instance Method Summary collapse

Instance Method Details

#bake(book:) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/kitchen/directions/bake_rex_wrappers/v1.rb', line 7

def bake(book:)
  book.search('body').first[:"data-book-content"] = 'true'

  book.pages.each do |page|
    page[:"data-book-content"] = 'true'
  end

  book.composite_pages.each do |page|
    page[:"data-book-content"] = 'true'
  end
end