Sha256: 29fc28b8db8130f7d9d4a65c3776cc47204fd830d674f14129814918c3e6d77a
Contents?: true
Size: 579 Bytes
Versions: 14
Compression:
Stored size: 579 Bytes
Contents
# A Robut::Storage implementation is a simple key-value store # accessible to all plugins. Plugins can access the global storage # object with the method +store+. All storage implementations inherit # from Robut::Storage::Base. All implementations must implement the class # methods [] and []=. class Robut::Storage::Base class << self # Sets the key +k+ to the value +v+ in the current storage system def []=(k,v) raise "Must be implemented" end # Returns the value at the key +k+. def [](k) raise "Must be implemented" end end end
Version data entries
14 entries across 14 versions & 2 rubygems