lib/protocol/http/methods.rb in protocol-http-0.30.0 vs lib/protocol/http/methods.rb in protocol-http-0.31.0

- old
+ new

@@ -67,13 +67,13 @@ constants.each do |name| yield name.downcase, const_get(name) end end - self.each do |name, value| + self.each do |name, method| define_method(name) do |location, *arguments, **options| self.call( - Request[value, location.to_s, *arguments, **options] + Request[method, location.to_s, *arguments, **options] ) end end end end