Module: RoHtmlHandler

Included in:
RoCommands::PostCell
Defined in:
lib/ro_html_handler.rb

Instance Method Summary collapse

Instance Method Details

#doc(html) ⇒ Object



2
3
4
5
6
7
# File 'lib/ro_html_handler.rb', line 2

def doc(html)
  doc = ::Nokogiri::HTML.parse(html)
  if block_given?
    yield doc
  end
end