Class: Burly::Parser Private

Inherits:
Object
  • Object
show all
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.

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

Instance Method Summary collapse

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_typesArray<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

#parseObject

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.

Raises:

  • (NotImplementedError)


21
22
23
# File 'lib/burly/parser.rb', line 21

def parse
  raise NotImplementedError
end