struct
Myhtml::Parser
- Myhtml::Parser
- Struct
- Value
- Object
Defined in:
myhtml/parser.crConstructors
- .new(page : String, encoding : Lib::MyEncodingList | Nil = nil, detect_encoding_from_meta : Bool = false, detect_encoding : Bool = false, tree_options : Lib::MyhtmlTreeParseFlags | Nil = nil)
- .new(io : IO, tree_options : Lib::MyhtmlTreeParseFlags | Nil = nil, encoding : Lib::MyEncodingList | Nil = nil)
Instance Method Summary
-
#body(*args, **options)
Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node
-
#body(*args, **options, &)
Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node
-
#body!(*args, **options)
Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node
-
#body!(*args, **options, &)
Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node
-
#css(*args, **options)
Css selectors, see Node#css
-
#css(*args, **options, &)
Css selectors, see Node#css
-
#document!(*args, **options)
Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node
-
#document!(*args, **options, &)
Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node
-
#encoding(*args, **options)
Current encoding
-
#encoding(*args, **options, &)
Current encoding
-
#free(*args, **options)
Manually free object, dangerous (also called by GC finalize)
-
#free(*args, **options, &)
Manually free object, dangerous (also called by GC finalize)
-
#head(*args, **options)
Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node
-
#head(*args, **options, &)
Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node
-
#head!(*args, **options)
Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node
-
#head!(*args, **options, &)
Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node
-
#html(*args, **options)
Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node
-
#html(*args, **options, &)
Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node
-
#html!(*args, **options)
Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node
-
#html!(*args, **options, &)
Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node
-
#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(...)
-
#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(...)
-
#root(*args, **options)
Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node
-
#root(*args, **options, &)
Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node
-
#root!(*args, **options)
Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node
-
#root!(*args, **options, &)
Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node
-
#to_html(*args, **options)
Convert html tree to html string, see Node#to_html
-
#to_html(*args, **options, &)
Convert html tree to html string, see Node#to_html
- #to_pretty_html(*args, **options)
- #to_pretty_html(*args, **options, &)
Constructor Detail
Instance Method Detail
Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node
Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node
Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node
Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node
Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node
Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node
Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node
Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node
Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node
Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node
Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node
Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node
Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node
Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node
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| ... }
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| ... }
Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node
Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node
Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node
Root nodes for parsed tree myhtml.body! - body node myhtml.head! - head node myhtml.root! - html node myhtml.document! - document node