Sha256: 40d128684ec2074657cbabc7ac15b76bb9351f0016b5b53f562f7be2734be437

Contents?: true

Size: 371 Bytes

Versions: 2

Compression:

Stored size: 371 Bytes

Contents

module ModuleHelpers
  def valid_module
    Module.new do
      def read(key, options = nil)
        client[key]
      end

      def write(key, attributes, options = nil)
        client[key] = attributes
      end

      def delete(key, options = nil)
        client.delete(key)
      end

      def clear(options = nil)
        client.clear
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
adapter-0.7.1 spec/support/module_helpers.rb
adapter-0.7.0 spec/support/module_helpers.rb