class Cachengue::Proxy
Public Class Methods
new(classx, options = {})
click to toggle source
# File lib/cachengue/proxy.rb, line 7 def initialize(classx, options = {}) @classx = classx @options = options end
Public Instance Methods
cache_clear()
click to toggle source
# File lib/cachengue/proxy.rb, line 16 def cache_clear Cachengue::Caching.clear(@classx) end
cache_keys()
click to toggle source
# File lib/cachengue/proxy.rb, line 12 def cache_keys Cachengue::Caching.keys(@classx) end
Private Instance Methods
method_missing(method_name, *args)
click to toggle source
# File lib/cachengue/proxy.rb, line 26 def method_missing(method_name, *args) Cachengue::Caching.fetch(@classx, method_name, args, @options) do @classx.public_send(method_name, *args) end end
respond_to_missing?(method_name, include_all = false)
click to toggle source
Calls superclass method
# File lib/cachengue/proxy.rb, line 22 def respond_to_missing?(method_name, include_all = false) @classx.respond_to?(method_name, include_all) || super end