class Moneta::BasicRufus
Public Class Methods
new(options = {})
click to toggle source
Calls superclass method
# File lib/moneta/rufus.rb, line 12 def initialize(options = {}) file = options[:file] super("#{file}.tch") end
Public Instance Methods
[](key)
click to toggle source
Calls superclass method
# File lib/moneta/rufus.rb, line 21 def [](key) if val = super Marshal.load(val.unpack("m")[0]) end end
[]=(key, value)
click to toggle source
Calls superclass method
# File lib/moneta/rufus.rb, line 27 def []=(key, value) super(key, [Marshal.dump(value)].pack("m")) end
key?(key)
click to toggle source
# File lib/moneta/rufus.rb, line 17 def key?(key) !!self[key] end