Sha256: 9b49b8a8d121c89cd7dad39e0b4d7b9a38504fc84bf2b7a527571799a1c27cde
Contents?: true
Size: 282 Bytes
Versions: 1
Compression:
Stored size: 282 Bytes
Contents
# frozen_string_literal: true class KeyVortex class Memory def initialize(items) @items = items end def set(key, item) @items[key] = item end def get(key) @items[key] end def remove(key) @items.delete(key) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
key-vortex-0.1.1 | lib/key_vortex/memory.rb |