class TestRecognizePath::PageConstraint
Attributes
key[R]
pattern[R]
Public Class Methods
new(key, pattern)
click to toggle source
# File actionpack/test/dispatch/routing_test.rb, line 5000 def initialize(key, pattern) @key = key @pattern = pattern end
Public Instance Methods
matches?(request)
click to toggle source
# File actionpack/test/dispatch/routing_test.rb, line 5005 def matches?(request) request.path_parameters[key] =~ pattern end