Sha256: e72d8f268ad9d4567c21e9669e9b00bcfa48358698050372eb8c22168d73b20b
Contents?: true
Size: 411 Bytes
Versions: 30
Compression:
Stored size: 411 Bytes
Contents
# frozen_string_literal: true @solution1 = Kitchen::Recipe.new do |doc| doc.search("[data-type='chapter']").each do |chapter| movers = chapter.search('.will-move').cut movers.each { |mover| mover.name = 'section' } chapter.append(child: <<~HTML <div class="eoc"> <div class="os-title">End of Chapter Collations</div> #{movers.paste} </div> HTML ) end end
Version data entries
30 entries across 30 versions & 1 rubygems