Class: Simple::Builder::HTMLFragment
- Inherits:
-
Simple::Builder
- Object
- Simple::Builder
- Simple::Builder::HTMLFragment
- Defined in:
- lib/simple-builder/builders.rb
Instance Method Summary collapse
-
#initialize ⇒ HTMLFragment
constructor
A new instance of HTMLFragment.
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
#initialize ⇒ HTMLFragment
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 |