Method: Moneta::Stack#load
- Defined in:
- lib/moneta/stack.rb
#load(key, options = {}) ⇒ Object
Fetch value with key. Return nil if the key doesn’t exist
49 50 51 52 53 54 55 |
# File 'lib/moneta/stack.rb', line 49 def load(key, = {}) @stack.each do |s| value = s.load(key, ) return value if value != nil end nil end |