module Cachers::Delegation

Public Instance Methods

method_missing(name, *args, &block) click to toggle source
Calls superclass method
# File lib/cachers/delegation.rb, line 8
def method_missing(name, *args, &block)
  if cacher.respond_to?(name)
    cacher.send name, *args, &block
  else
    super
  end
end
respond_to_missing?(name, private=false) click to toggle source
Calls superclass method
# File lib/cachers/delegation.rb, line 4
def respond_to_missing?(name, private=false)
  cacher.respond_to?(name) || super
end