Class: Grape::Validations::ParamsDocumentation::TypeCache
- Inherits:
-
Util::Cache
- Object
- Util::Cache
- Grape::Validations::ParamsDocumentation::TypeCache
- Defined in:
- lib/grape/validations/params_documentation.rb
Instance Attribute Summary
Attributes inherited from Util::Cache
Instance Method Summary collapse
-
#initialize ⇒ TypeCache
constructor
A new instance of TypeCache.
Constructor Details
#initialize ⇒ TypeCache
Returns a new instance of TypeCache.
41 42 43 44 45 46 |
# File 'lib/grape/validations/params_documentation.rb', line 41 def initialize super @cache = Hash.new do |h, type| h[type] = type.to_s end end |