Class: Simple::Builder::HTMLDocument
- Inherits:
-
Simple::Builder
- Object
- Simple::Builder
- Simple::Builder::HTMLDocument
- Defined in:
- lib/simple-builder/builders.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize ⇒ HTMLDocument
constructor
A new instance of HTMLDocument.
- #internal_subset ⇒ Object
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 ⇒ HTMLDocument
26 27 28 29 30 31 32 |
# File 'lib/simple-builder/builders.rb', line 26 def initialize super @root = Nokogiri::HTML::Document.new @root.encoding = 'UTF-8' @root.internal_subset.remove @root.create_internal_subset(*internal_subset) if internal_subset end |
Instance Method Details
#internal_subset ⇒ Object
34 35 36 |
# File 'lib/simple-builder/builders.rb', line 34 def internal_subset nil end |