Sha256: 4cfec3536e9f55440590df3f6b313b6208613615d28bff150159981b368ba9a0

Contents?: true

Size: 204 Bytes

Versions: 7

Compression:

Stored size: 204 Bytes

Contents

# frozen_string_literal: true

module Kitchen
  module Directions
    module RemoveSectionTitle
      def self.v1(section:)
        section.first('[data-type="title"]')&.trash
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
openstax_kitchen-11.2.0 lib/kitchen/directions/bake_eoc_section_content/remove_section_title.rb
openstax_kitchen-11.1.0 lib/kitchen/directions/bake_eoc_section_content/remove_section_title.rb
openstax_kitchen-11.0.0 lib/kitchen/directions/bake_eoc_section_content/remove_section_title.rb
openstax_kitchen-10.0.0 lib/kitchen/directions/bake_eoc_section_content/remove_section_title.rb
openstax_kitchen-9.2.0 lib/kitchen/directions/bake_eoc_section_content/remove_section_title.rb
openstax_kitchen-9.1.0 lib/kitchen/directions/bake_eoc_section_content/remove_section_title.rb
openstax_kitchen-9.0.0 lib/kitchen/directions/bake_eoc_section_content/remove_section_title.rb