Class: RanchHand::Storage

Inherits:
Object
  • Object
show all
Defined in:
lib/ranch_hand/storage.rb

Instance Method Summary collapse

Instance Method Details

#get(key) ⇒ Object



3
4
5
# File 'lib/ranch_hand/storage.rb', line 3

def get(key)
  store[key]
end

#set(key, val) ⇒ Object



7
8
9
10
# File 'lib/ranch_hand/storage.rb', line 7

def set(key, val)
  store[key] = val
  save
end