Method: ActionDispatch::Journey::Path::Pattern#match

Defined in:
actionpack/lib/action_dispatch/journey/path/pattern.rb

#match(other) ⇒ Object Also known as: =~



159
160
161
162
# File 'actionpack/lib/action_dispatch/journey/path/pattern.rb', line 159

def match(other)
  return unless match = to_regexp.match(other)
  MatchData.new(names, offsets, match)
end