Method: Coin::Vault#read

Defined in:
lib/coin/vault.rb

#read(key) ⇒ Object



13
14
15
16
17
18
# File 'lib/coin/vault.rb', line 13

def read(key)
  value = @dict[key]
  value = nil if value && value_expired?(value)
  return value[:value] if value
  nil
end