Sha256: 8cac9d46548fc7a384d5855b93bfa7a61fdd0565ee8013deb37b521e3663662b

Contents?: true

Size: 218 Bytes

Versions: 2

Compression:

Stored size: 218 Bytes

Contents

class MockStorage
  attr_reader :data

  def initialize
    @data = {}
  end

  def write(key, value)
    data[key] = value
  end

  def read(key)
    data[key]
  end

  def delete(key)
    !!data.delete(key)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mixpal-0.0.5 spec/support/mock_storage.rb
mixpal-0.0.4 spec/support/mock_storage.rb