Skip to content

Commit 2efe1e4

Browse files
committed
Address Yard warnings
1 parent ec58206 commit 2efe1e4

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

lib/webmention.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def self.send_webmention(source, target, vouch: nil)
7676
#
7777
# @param source [String, HTTP::URI, #to_s]
7878
# An absolute URL representing a source document.
79-
# @param *targets [Array<String, HTTP::URI, #to_s>]
79+
# @param targets [Array<String, HTTP::URI, #to_s>]
8080
# An array of absolute URLs representing multiple target documents.
8181
# @param vouch [String, HTTP::URI, #to_s]
8282
# An absolute URL representing a document vouching for the source document.

lib/webmention/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def send_webmention(target)
104104
# targets = ['https://aaronpk.example/notes/1', 'https://adactio.example/notes/1']
105105
# client.send_webmentions(targets)
106106
#
107-
# @param *targets [Array<String, HTTP::URI, #to_s>]
107+
# @param targets [Array<String, HTTP::URI, #to_s>]
108108
# An array of absolute URLs representing multiple target documents.
109109
#
110110
# @return [Array<Webmention::Response, Webmention::ErrorResponse>]

lib/webmention/parsers/html_parser.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def doc
4141
Nokogiri.HTML5(response_body)
4242
end
4343

44-
# @param *attributes [Array<Nokogiri::XML::Attr>]
44+
# @param attributes [Array<Nokogiri::XML::Attr>]
4545
#
4646
# @return [Array<String>]
4747
def extract_urls_from(*attributes)

lib/webmention/parsers/json_parser.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def results
1515

1616
private
1717

18-
# @param *objs [Array<Hash, Array, String, Integer, Boolean, nil>]
18+
# @param objs [Array<Hash, Array, String, Integer, Boolean, nil>]
1919
#
2020
# @return [Array<String>]
2121
def extract_urls_from(*objs)

lib/webmention/request.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def self.get(url)
5757
# An absolute URL representing a source document.
5858
# @option options [String] :target
5959
# An absolute URL representing a target document.
60-
# @param vouch [String]
60+
# @option options [String] :vouch
6161
# An absolute URL representing a document vouching for the source document.
6262
# See https://indieweb.org/Vouch for additional details.
6363
#

0 commit comments

Comments
 (0)