class Grape::Router::Pattern::PatternCache

Public Class Methods

new() click to toggle source
# File lib/grape/router/pattern.rb, line 59
def initialize
  @cache = Hash.new do |h, (pattern, suffix)|
    h[[pattern, suffix]] = -"#{pattern}#{suffix}"
  end
end