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

Version Path
sclemmer-robut-0.6.3 lib/robut/storage/base.rb
sclemmer-robut-0.6.2 lib/robut/storage/base.rb
sclemmer-robut-0.6.1 lib/robut/storage/base.rb
sclemmer-robut-0.6.0 lib/robut/storage/base.rb
sclemmer-robut-0.5.4 lib/robut/storage/base.rb
sclemmer-robut-0.5.3 lib/robut/storage/base.rb
sclemmer-robut-0.5.2 lib/robut/storage/base.rb
robut-0.5.2 lib/robut/storage/base.rb
robut-0.5.1 lib/robut/storage/base.rb
robut-0.5.0 lib/robut/storage/base.rb
robut-0.4.0 lib/robut/storage/base.rb
robut-0.3.0 lib/robut/storage/base.rb
robut-0.2.1 lib/robut/storage/base.rb
robut-0.2.0 lib/robut/storage/base.rb