Class: RefileCache::Cache
- Inherits:
-
Object
- Object
- RefileCache::Cache
- Defined in:
- lib/refile_cache/cache.rb
Defined Under Namespace
Classes: Logic
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ Cache
constructor
A new instance of Cache.
Constructor Details
#initialize(app) ⇒ Cache
Returns a new instance of Cache.
4 5 6 |
# File 'lib/refile_cache/cache.rb', line 4 def initialize(app) @app = app end |
Instance Method Details
#call(env) ⇒ Object
8 9 10 |
# File 'lib/refile_cache/cache.rb', line 8 def call(env) "#{self.class}::Logic".constantize.new(@app).call(env) end |