Skip to content

Commit faa70cb

Browse files
committed
Prefer lower case method names.
1 parent e64a6cb commit faa70cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/protocol/http/methods.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ def self.each
6565
return to_enum(:each) unless block_given?
6666

6767
constants.each do |name|
68-
yield name, const_get(name)
68+
yield name.downcase, const_get(name)
6969
end
7070
end
7171

7272
self.each do |name, value|
73-
define_method(name.downcase) do |location, headers = nil, body = nil|
73+
define_method(name) do |location, headers = nil, body = nil|
7474
self.call(
7575
Request[value, location.to_s, Headers[headers], body]
7676
)

0 commit comments

Comments
 (0)