Sha256: 201d40aa16a32fc1b14c0b996406948043497c378a8a64478d995360d672c9db

Contents?: true

Size: 272 Bytes

Versions: 1

Compression:

Stored size: 272 Bytes

Contents

require_relative '../transparent_proxy'

module Asynchronic
  module DataStore
    class ReadonlyStore < TransparentProxy
 
      def []=(key, value)
        raise "Can't modify read only data store"
      end

      def readonly?
        true
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
asynchronic-0.2.0 lib/asynchronic/data_store/readonly_store.rb