instance method
respond_to?
Ruby on Rails 7.1.6
Since v4.2.9Signature
respond_to?(method, include_private = false)
No documentation comment.
Parameters
-
methodreq -
include_privateopt = false
Source
# File actionpack/lib/action_dispatch/http/response.rb, line 502
def respond_to?(method, include_private = false)
if BODY_METHODS.key?(method)
@response.stream.respond_to?(method)
else
super
end
end
Defined in actionpack/lib/action_dispatch/http/response.rb line 502
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Response::RackBody