instance method
respond_to?
Ruby on Rails 8.1.2
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 562
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 562
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Response::RackBody