Sha256: 785e5b37ae8d2cdd53e3db66ac36dc6c9c0a637599003b016618a72abe3a3608
Contents?: true
Size: 418 Bytes
Versions: 14
Compression:
Stored size: 418 Bytes
Contents
require 'yaml' # A simple in-memory store backed by a Hash. class Robut::Storage::HashStore < Robut::Storage::Base class << self # Stores +v+ in the hash. def []=(k, v) internal[k] = v end # Returns the value at key +k+. def [](k) internal[k] end private # The hash the data is being stored in. def internal @internal ||= {} end end end
Version data entries
14 entries across 14 versions & 2 rubygems