Class: Webmention::Parsers::HtmlParser Private

Inherits:
Webmention::Parser show all
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

Methods inherited from Webmention::Parser

#initialize

Constructor Details

This class inherits a constructor from Webmention::Parser

Instance Method Details

#resultsArray<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.

Returns:

  • (Array<String>)

    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