module Gkv::DbFunctions

Public Instance Methods

update_items(key, value) click to toggle source
# File lib/gkv/git.rb, line 15
def update_items(key, value)
  if $ITEMS.keys.include? key
    history = $ITEMS[key]
    history << Gkv::GitFunctions.hash_object(value)
    $ITEMS[key] = history
  else
    $ITEMS[key] = [Gkv::GitFunctions.hash_object(value)]
  end
end