Sha256: 2e104c28330e8be0e90a7c2c90580d8f4b2868aa20189389c1672e6b99a70be0

Contents?: true

Size: 340 Bytes

Versions: 2

Compression:

Stored size: 340 Bytes

Contents

module Interlock
  #
  # A stub class so that does not cache, for use in the test environment and the console
  # when the MemoryStore is not available.
  #
  class PassThroughStore
    
    # Do nothing.
    def nothing(*args)
      nil
    end
    
    alias :read :nothing
    alias :write :nothing
    alias :delete :nothing

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
interlock-1.4 lib/interlock/pass_through_store.rb
interlock-1.3 lib/interlock/pass_through_store.rb