Class: Burly::Parser Private
- Inherits:
-
Object
- Object
- Burly::Parser
- Defined in:
- lib/burly/parser.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Direct Known Subclasses
Burly::Parsers::HtmlParser, Burly::Parsers::JsonParser, Burly::Parsers::PlaintextParser
Constant Summary collapse
- URI_PARSER =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
defined?(URI::RFC2396_PARSER) ? URI::RFC2396_PARSER : URI::Generic::DEFAULT_PARSER
- URI_REGEXP =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
URI_PARSER.make_regexp(["http", "https"])
Class Attribute Summary collapse
- .mime_types ⇒ Array<String> readonly private
Instance Method Summary collapse
-
#initialize(document, **_kwargs) ⇒ Parser
constructor
private
A new instance of Parser.
- #parse ⇒ Object private
Constructor Details
#initialize(document, **_kwargs) ⇒ Parser
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Parser.
16 17 18 |
# File 'lib/burly/parser.rb', line 16 def initialize(document, **_kwargs) @document = document.to_s end |
Class Attribute Details
.mime_types ⇒ Array<String> (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
12 13 14 |
# File 'lib/burly/parser.rb', line 12 def mime_types @mime_types end |
Instance Method Details
#parse ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
21 22 23 |
# File 'lib/burly/parser.rb', line 21 def parse raise NotImplementedError end |