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.
30 31 32 33 34 35 |
# File 'lib/grape/router/base_route.rb', line 30 def initialize super @cache = Hash.new do |h, index| h[index] = "_#{index}" end end |