Class: Shallow::Caller::Clear

Inherits:
Base
  • Object
show all
Defined in:
lib/shallow.rb

Instance Attribute Summary

Attributes inherited from Base

#cache_key, #captured_method

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Shallow::Caller::Base

Instance Method Details

#call(&context) ⇒ Object



88
89
90
91
# File 'lib/shallow.rb', line 88

def call(&context)
  cache.delete(cache_key) if cache.exist?(cache_key)
  super(&context)
end