class Grape::Router::BaseRoute
def initialize(options)
def initialize(options) @options = options.is_a?(ActiveSupport::OrderedOptions) ? options : ActiveSupport::OrderedOptions.new.update(options) end
def pattern_regexp
def pattern_regexp pattern.to_regexp end
def regexp_capture_index
def regexp_capture_index CaptureIndexCache[index] end
def to_regexp(index)
def to_regexp(index) @index = index Regexp.new("(?<#{regexp_capture_index}>#{pattern_regexp})") end