Class: Grape::Router::BaseRoute::CaptureIndexCache
- Inherits:
-
Util::Cache
- Object
- Util::Cache
- Grape::Router::BaseRoute::CaptureIndexCache
- Defined in:
- lib/grape/router/base_route.rb
Instance Attribute Summary
Attributes inherited from Util::Cache
Instance Method Summary collapse
-
#initialize ⇒ CaptureIndexCache
constructor
A new instance of CaptureIndexCache.
Constructor Details
#initialize ⇒ CaptureIndexCache
Returns a new instance of CaptureIndexCache.
39 40 41 42 43 44 |
# File 'lib/grape/router/base_route.rb', line 39 def initialize super @cache = Hash.new do |h, index| h[index] = "_#{index}" end end |