Method: Moneta::Stack#delete
- Defined in:
- lib/moneta/stack.rb
#delete(key, options = {}) ⇒ Object
Delete the key from the store and return the current value
78 79 80 81 82 83 |
# File 'lib/moneta/stack.rb', line 78 def delete(key, = {}) @stack.inject(nil) do |value, s| v = s.delete(key, ) value || v end end |