def ensure_sane_wildcard
      idx = specifications.length
      while (idx -= 1) >= 0
        if specifications[idx] == '*'
          raise ArgumentError, "Can only specify one wildcard '*' in between resource specifications"
        elsif specifications[idx].is_a?(Specification)
          break
        end
      end
      true
    end
def ensure_sane_wildcard
      idx = specifications.length
      while (idx -= 1) >= 0
        if specifications[idx] == '*'
          raise ArgumentError, "Can only specify one wildcard '*' in between resource specifications"
        elsif specifications[idx].is_a?(Specification)
          break
        end
      end
      true
    end
ensure that specifications array is determinate w.r.t route matching