lib/strava/web/response.rb in strava-ruby-client-2.1.0 vs lib/strava/web/response.rb in strava-ruby-client-2.2.0
- old
+ new
@@ -49,14 +49,14 @@
# @param [Proc] &block
#
# @raise [NoMethodError]
# @return [any]
#
- def operate_on_response_body!(method_symbol, *args, &block)
+ def operate_on_response_body!(method_symbol, ...)
case @response.body
when Hash
- @response.body.send(method_symbol, *args, &block)
+ @response.body.send(method_symbol, ...)
else
raise NoMethodError
end
end
@@ -73,15 +73,15 @@
body_elem['http_response'] = response
body_elem
end
end
- def method_missing(method_symbol, *args, &block)
+ def method_missing(method_symbol, ...)
case @response
when Array
- @response.send(method_symbol, *args, &block)
+ @response.send(method_symbol, ...)
else
- operate_on_response_body!(method_symbol, *args, &block)
+ operate_on_response_body!(method_symbol, ...)
end
end
def respond_to_missing?(method_name, include_private = false)
super