Module: Kitchen::Directions::RemoveSectionTitle

Defined in:
lib/kitchen/directions/bake_eoc_section_content/remove_section_title.rb

Class Method Summary collapse

Class Method Details

.v1(section:, selector: '') ⇒ Object



6
7
8
# File 'lib/kitchen/directions/bake_eoc_section_content/remove_section_title.rb', line 6

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