struct

Myhtml::Parser

Inherits Struct < Value < Object

Constructors

new(page : String, encoding : Lib::MyEncodingList | Nil = nil, detect_encoding_from_meta : Bool = false, detect_encoding : Bool = false, tree_options : Lib::MyhtmlTreeParseFlags | Nil = nil)
Source
new(io : IO, tree_options : Lib::MyhtmlTreeParseFlags | Nil = nil, encoding : Lib::MyEncodingList | Nil = nil)
Source

Instance methods

body(*args, **options)

Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node

Source
body(*args, **options, &)

Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node

Source
body!(*args, **options)

Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node

Source
body!(*args, **options, &)

Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node

Source
css(*args, **options)

Css selectors, see Node#css

Source
css(*args, **options, &)

Css selectors, see Node#css

Source
document!(*args, **options)

Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node

Source
document!(*args, **options, &)

Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node

Source
encoding(*args, **options)

Current encoding

Source
encoding(*args, **options, &)

Current encoding

Source
free(*args, **options)

Manually free object, dangerous (also called by GC finalize)

Source
free(*args, **options, &)

Manually free object, dangerous (also called by GC finalize)

Source
head(*args, **options)

Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node

Source
head(*args, **options, &)

Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node

Source
head!(*args, **options)

Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node

Source
head!(*args, **options, &)

Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node

Source
html(*args, **options)

Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node

Source
html(*args, **options, &)

Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node

Source
html!(*args, **options)

Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node

Source
html!(*args, **options, &)

Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node

Source
nodes(*args, **options)

Top level node filter (select all nodes in tree with tag_sym) returns Myhtml::Iterator::Collection equal with myhtml.root!.scope.nodes(...)

myhtml.nodes(:div).each { |node| ... }

Source
nodes(*args, **options, &)

Top level node filter (select all nodes in tree with tag_sym) returns Myhtml::Iterator::Collection equal with myhtml.root!.scope.nodes(...)

myhtml.nodes(:div).each { |node| ... }

Source
root(*args, **options)

Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node

Source
root(*args, **options, &)

Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node

Source
root!(*args, **options)

Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node

Source
root!(*args, **options, &)

Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node

Source
to_html(*args, **options)

Convert html tree to html string, see Node#to_html

Source
to_html(*args, **options, &)

Convert html tree to html string, see Node#to_html

Source
to_pretty_html(*args, **options)
Source
to_pretty_html(*args, **options, &)
Source