Class: MonetaHash

Inherits:
Object
  • Object
show all
Includes:
DataMapper::Resource
Defined in:
lib/moneta/adapters/datamapper.rb

Class Method Summary collapse

Class Method Details

.value(key) ⇒ Object



18
19
20
21
# File 'lib/moneta/adapters/datamapper.rb', line 18

def self.value(key)
  obj = self.get(key)
  obj && obj.value
end