Module: Kitchen::Directions::MoveTitleTextIntoSpan

Defined in:
lib/kitchen/directions/move_title_text_into_span.rb

Class Method Summary collapse

Class Method Details

.v1(title:) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/kitchen/directions/move_title_text_into_span.rb', line 6

def self.v1(title:)
  title.replace_children(with:
    <<~HTML
      <span data-type="" itemprop="" class="os-text">#{title.text}</span>
    HTML
  )
end