Class: Webmention::Parsers::HtmlParser Private
- Inherits:
-
Webmention::Parser
- Object
- Webmention::Parser
- Webmention::Parsers::HtmlParser
- Defined in:
- lib/webmention/parsers/html_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
Constants inherited from Webmention::Parser
Webmention::Parser::URI_REGEXP
Instance Method Summary collapse
-
#results ⇒ Array<String>
private
An array of absolute URLs.
Methods inherited from Webmention::Parser
Constructor Details
This class inherits a constructor from Webmention::Parser
Instance Method Details
#results ⇒ Array<String>
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 An array of absolute URLs.
31 32 33 34 35 36 |
# File 'lib/webmention/parsers/html_parser.rb', line 31 def results @results ||= extract_urls_from(*url_attributes) .map { |url| response_uri.join(url).to_s } .grep(Parser::URI_REGEXP) end |