Parent

Methods

Files

Class/Module Index [+]

Quicksearch

Moneta::Adapters::GDBM

GDBM backend @api public

Public Class Methods

new(options = {}) click to toggle source

@param [Hash] options @option options [String] :file Database file @option options [::GDBM] :backend Use existing backend instance

# File lib/moneta/adapters/gdbm.rb, line 11
def initialize(options = {})
  @backend = options[:backend] ||
    begin
      raise ArgumentError, 'Option :file is required' unless options[:file]
      ::GDBM.new(options[:file])
    end
end

Public Instance Methods

close() click to toggle source

(see Proxy#close)

# File lib/moneta/adapters/gdbm.rb, line 20
def close
  @backend.close
  nil
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.