Class: Mato::Renderers::HtmlRenderer

Inherits:
Object
  • Object
show all
Defined in:
lib/mato/renderers/html_renderer.rb

Instance Method Summary collapse

Instance Method Details

#call(doc) ⇒ String

Parameters:

  • doc (Nokogiri::HTML4::DocumentFragment)

Returns:

  • (String)


8
9
10
# File 'lib/mato/renderers/html_renderer.rb', line 8

def call(doc)
  doc.to_html
end