Sha256: 5f57c19b1452f715c1fad6ae5420372e4d323a0cd41a3d5a441007be1157b8dd

Contents?: true

Size: 306 Bytes

Versions: 5

Compression:

Stored size: 306 Bytes

Contents

module Cachers
  module Delegation

    def respond_to_missing?(name, private=false)
      cacher.respond_to?(name) || super
    end

    def method_missing(name, *args, &block)
      if cacher.respond_to?(name)
        cacher.send name, *args, &block
      else
        super
      end
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cachers-5.1.2 lib/cachers/delegation.rb
cachers-5.1.1 lib/cachers/delegation.rb
cachers-4.1.0.2 lib/cachers/delegation.rb
cachers-4.1.0.1 lib/cachers/delegation.rb
cachers-4.1.0.0 lib/cachers/delegation.rb