Sha256: bffe01178fe2a67df8ae659c38ce007fd0db0e5fffe051c84c31c22132b976fe

Contents?: true

Size: 259 Bytes

Versions: 16

Compression:

Stored size: 259 Bytes

Contents

class Cachy::Wrapper
  def initialize(wrapped)
    @wrapped = wrapped
  end

  def read(key)
    @wrapped[key]
  end

  def method_missing(name, args)
    @wrapped.send(name, *args)
  end

  def respond_to?(x)
    super(x) || @wrapped.respond_to?(x)
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
cachy-0.4.2 lib/cachy/wrapper.rb
cachy-0.4.1 lib/cachy/wrapper.rb
grosser-cachy-0.1.0 lib/cachy/wrapper.rb
grosser-cachy-0.1.1 lib/cachy/wrapper.rb
grosser-cachy-0.1.2 lib/cachy/wrapper.rb
cachy-0.4.0 lib/cachy/wrapper.rb
cachy-0.3.1 lib/cachy/wrapper.rb
cachy-0.3.0 lib/cachy/wrapper.rb
cachy-0.2.1 lib/cachy/wrapper.rb
cachy-0.2.0 lib/cachy/wrapper.rb
cachy-0.1.7 lib/cachy/wrapper.rb
cachy-0.1.6 lib/cachy/wrapper.rb
cachy-0.1.5 lib/cachy/wrapper.rb
cachy-0.1.4 lib/cachy/wrapper.rb
cachy-0.1.3 lib/cachy/wrapper.rb
cachy-0.1.2 lib/cachy/wrapper.rb