Class: Grape::Namespace::JoinedSpaceCache
- Inherits:
-
Util::Cache
- Object
- Util::Cache
- Grape::Namespace::JoinedSpaceCache
- Defined in:
- lib/grape/namespace.rb
Instance Attribute Summary
Attributes inherited from Util::Cache
Instance Method Summary collapse
-
#initialize ⇒ JoinedSpaceCache
constructor
A new instance of JoinedSpaceCache.
Constructor Details
#initialize ⇒ JoinedSpaceCache
Returns a new instance of JoinedSpaceCache.
40 41 42 43 44 |
# File 'lib/grape/namespace.rb', line 40 def initialize @cache = Hash.new do |h, joined_space| h[joined_space] = -joined_space.join('/') end end |