instance method
respond_to?
Ruby on Rails 4.0.13
Since v3.0.20 Last seen in v4.1.16Signature
respond_to?(method, include_private = false)
No documentation comment.
Parameters
-
methodreq -
include_privateopt = false
Source
# File actionpack/lib/action_dispatch/http/response.rb, line 172
def respond_to?(method, include_private = false)
if method.to_s == 'to_path'
stream.respond_to?(:to_path)
else
super
end
end
Defined in actionpack/lib/action_dispatch/http/response.rb line 172
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Response