Method: Journey::Path::Pattern#match

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

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



166
167
168
169
# File 'lib/journey/path/pattern.rb', line 166

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