Sha256: 44d0b76bd10b549c55ca32a6dc852d520b3cb7dea9f9b60bd769e65d92b343fe

Contents?: true

Size: 231 Bytes

Versions: 11

Compression:

Stored size: 231 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
openstax_kitchen-19.0.0 lib/kitchen/directions/bake_eoc_section_content/remove_section_title.rb
openstax_kitchen-18.0.0 lib/kitchen/directions/bake_eoc_section_content/remove_section_title.rb
openstax_kitchen-17.1.0 lib/kitchen/directions/bake_eoc_section_content/remove_section_title.rb
openstax_kitchen-17.0.0 lib/kitchen/directions/bake_eoc_section_content/remove_section_title.rb
openstax_kitchen-16.0.0 lib/kitchen/directions/bake_eoc_section_content/remove_section_title.rb
openstax_kitchen-15.0.0 lib/kitchen/directions/bake_eoc_section_content/remove_section_title.rb
openstax_kitchen-14.0.0 lib/kitchen/directions/bake_eoc_section_content/remove_section_title.rb
openstax_kitchen-13.0.0 lib/kitchen/directions/bake_eoc_section_content/remove_section_title.rb
openstax_kitchen-12.2.0 lib/kitchen/directions/bake_eoc_section_content/remove_section_title.rb
openstax_kitchen-12.1.0 lib/kitchen/directions/bake_eoc_section_content/remove_section_title.rb
openstax_kitchen-12.0.0 lib/kitchen/directions/bake_eoc_section_content/remove_section_title.rb