instance method
respond_to?
Ruby on Rails 5.2.8.1
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 488
def respond_to?(method, include_private = false)
if method.to_s == "to_path"
@response.stream.respond_to?(method)
else
super
end
end
Defined in actionpack/lib/action_dispatch/http/response.rb line 488
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Response::RackBody