Module: Kitchen::Directions::ChangeSubsectionTitleTag

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

Class Method Summary collapse

Class Method Details

.v1(section:) ⇒ Object



6
7
8
9
10
# File 'lib/kitchen/directions/bake_eoc_section_content/change_subsection_title_tag.rb', line 6

def self.v1(section:)
  section.search('section').each do |subsection|
    subsection.first('h4').name = 'h5'
  end
end