struct Myhtml::Parser
- Myhtml::Parser
- Struct
- Value
- Object
Defined in:
myhtml/parser.crConstant Summary
-
BUFFER_SIZE =
8192
Constructors
-
.new(page : String, tree_options : Lib::MyhtmlTreeParseFlags | Nil = nil, encoding : Lib::MyEncodingList | Nil = nil, detect_encoding_from_meta : Bool = false, detect_encoding : Bool = false)
parse from string
-
.new(io : IO, tree_options : Lib::MyhtmlTreeParseFlags | Nil = nil, encoding : Lib::MyEncodingList | Nil = nil)
parse from stream
Instance Method Summary
- #body(*args, **options)
- #body(*args, **options, &)
- #body!(*args, **options)
- #body!(*args, **options, &)
- #encoding : Myhtml::Lib::MyEncodingList
-
#free
Dangerous, free object
- #head(*args, **options)
- #head(*args, **options, &)
- #head!(*args, **options)
- #head!(*args, **options, &)
- #html(*args, **options)
- #html(*args, **options, &)
- #html!(*args, **options)
- #html!(*args, **options, &)
- #nodes(tag_id : Myhtml::Lib::MyhtmlTags)
- #nodes(tag_sym : Symbol)
- #nodes(tag_str : String)
- #root(*args, **options)
- #root(*args, **options, &)
- #root!(*args, **options)
- #root!(*args, **options, &)
- #tree : Myhtml::Tree
Constructor Detail
def self.new(page : String, tree_options : Lib::MyhtmlTreeParseFlags | Nil = nil, encoding : Lib::MyEncodingList | Nil = nil, detect_encoding_from_meta : Bool = false, detect_encoding : Bool = false)
#
parse from string
def self.new(io : IO, tree_options : Lib::MyhtmlTreeParseFlags | Nil = nil, encoding : Lib::MyEncodingList | Nil = nil)
#
parse from stream