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.
Methods inherited from Util::Cache
Constructor Details
#initialize ⇒ CaptureIndexCache
Returns a new instance of CaptureIndexCache.
76 77 78 79 80 81 |
# File 'lib/grape/router/base_route.rb', line 76 def initialize super @cache = Hash.new do |h, index| h[index] = "_#{index}" end end |