Class: Simple::Builder::HTMLFragment

Inherits:
Simple::Builder show all
Defined in:
lib/simple-builder/builders.rb

Instance Method Summary collapse

Methods inherited from Simple::Builder

#build_html, build_html, build_html4_document, build_html5_document, check_html_errors, find_body_element, find_head_element, find_link_element_attributes, find_meta_info, find_p_child_elements, find_title_element, parse_html_document, parse_html_fragment, replace_element, script, string_to_html, style, viewport

Constructor Details

#initializeHTMLFragment

Returns a new instance of HTMLFragment.



58
59
60
61
# File 'lib/simple-builder/builders.rb', line 58

def initialize
  super
  @root = Nokogiri::HTML.fragment('')
end