Sha256: 795f2d39572f367f638e271139bbd1ce5bc05588ad2710cf997b4de793bd47b7

Contents?: true

Size: 260 Bytes

Versions: 1

Compression:

Stored size: 260 Bytes

Contents

class ChunkStore
  def initialize(prefix,saveHook,loadHook)
    @prefix=prefix
    @saveHook=saveHook
    @loadHook=loadHook
  end

  def save(name,value)
    @saveHook.call(@prefix+name,value)
  end

  def load(name)
    @loadHook.call(@prefix+name)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
appswarm-0.0.1 apps/local_chunk_store/chunk_store.rb