Class: Grape::Path::PartsCache
- Inherits:
-
Util::Cache
- Object
- Util::Cache
- Grape::Path::PartsCache
- Defined in:
- lib/grape/path.rb
Instance Attribute Summary
Attributes inherited from Util::Cache
Instance Method Summary collapse
-
#initialize ⇒ PartsCache
constructor
A new instance of PartsCache.
Constructor Details
#initialize ⇒ PartsCache
Returns a new instance of PartsCache.
77 78 79 80 81 |
# File 'lib/grape/path.rb', line 77 def initialize @cache = Hash.new do |h, parts| h[parts] = -parts.join('/') end end |