method
matches?
v3.1.0 -
Show latest stable
- Class:
ActionDispatch::Routing::Mapper::Constraints
matches?(env)public
No documentation available.
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 26
def matches?(env)
req = @request.new(env)
@constraints.each { |constraint|
if constraint.respond_to?(:matches?) && !constraint.matches?(req)
return false
elsif constraint.respond_to?(:call) && !constraint.call(*constraint_args(constraint, req))
return false
end
}
return true
end