In Files

Methods

Moneta::Defaults

Public Instance Methods

fetch(key, value = nil) click to toggle source
# File lib/moneta.rb, line 67
def fetch(key, value = nil)
  value ||= block_given? ? yield(key) : default
  self[key] || value
end
store(key, value, options = {}) click to toggle source
# File lib/moneta.rb, line 72
def store(key, value, options = {})
  self[key] = value
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.