Class: RefileCache::Cache

Inherits:
Object
  • Object
show all
Defined in:
lib/refile_cache/cache.rb

Defined Under Namespace

Classes: Logic

Instance Method Summary collapse

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