Class: Webmention::Parsers::PlaintextParser Private

Inherits:
Webmention::Parser show all
Defined in:
lib/webmention/parsers/plaintext_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.



12
13
14
# File 'lib/webmention/parsers/plaintext_parser.rb', line 12

def results
  @results ||= URI::DEFAULT_PARSER.extract(response_body, %w[http https])
end