Module: Ronin::Support::Web::HTML::Mixin
- Included in:
- Mixin
- Defined in:
- lib/ronin/support/web/html/mixin.rb
Overview
Provides helper methods for working with HTML.
Instance Method Summary collapse
-
#html_build { ... } ⇒ Nokogiri::HTML::Builder
Creates a new
Nokogiri::HTML::Builder
. -
#html_open(path) {|doc| ... } ⇒ Nokogiri::HTML::Document
(also: #open_html)
Opens an HTML file.
-
#html_parse(html) {|doc| ... } ⇒ Nokogiri::HTML::Document
Parses the body of a document into a HTML document object.
Instance Method Details
#html_build { ... } ⇒ Nokogiri::HTML::Builder
Creates a new Nokogiri::HTML::Builder
.
108 109 110 |
# File 'lib/ronin/support/web/html/mixin.rb', line 108 def html_build(&block) HTML.build(&block) end |
#html_open(path) {|doc| ... } ⇒ Nokogiri::HTML::Document Also known as: open_html
Opens an HTML file.
79 80 81 |
# File 'lib/ronin/support/web/html/mixin.rb', line 79 def html_open(path,&block) HTML.open(path,&block) end |
#html_parse(html) {|doc| ... } ⇒ Nokogiri::HTML::Document
Parses the body of a document into a HTML document object.
52 53 54 |
# File 'lib/ronin/support/web/html/mixin.rb', line 52 def html_parse(html,&block) HTML.parse(html,&block) end |