def matches?(url, expected_mappings = {})
      actual_mappings = mappings(url)
      return false unless actual_mappings

      expected_mappings.empty? ||
        all_expected_mappings_match?(expected_mappings, actual_mappings)
    end
def matches?(url, expected_mappings = {})
      actual_mappings = mappings(url)
      return false unless actual_mappings

      expected_mappings.empty? ||
        all_expected_mappings_match?(expected_mappings, actual_mappings)
    end
Determine whether URL matches our pattern, and
 optionally whether the extracted mappings match
 a hash of expected values.  You can specify values
 as strings, numbers or regular expressions.