Sha256: c04c0ad7f732742a539e431201aeb15c9b9840c9a0b9bf4e5fca5beecdd3066f

Contents?: true

Size: 201 Bytes

Versions: 5

Compression:

Stored size: 201 Bytes

Contents

module Dcha
  module Store
    # :nodoc:
    class Memory < Hash
      def [](key)
        value = super
        raise DataUnavailableError, key if value.nil?
        value
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dcha-0.1.4 lib/dcha/store/memory.rb
dcha-0.1.3 lib/dcha/store/memory.rb
dcha-0.1.2 lib/dcha/store/memory.rb
dcha-0.1.1 lib/dcha/store/memory.rb
dcha-0.1.0 lib/dcha/store/memory.rb