Sha256: 7a032abac44c9f73519343cb3c95562232f2152c8d292098a0884d9061117ab8

Contents?: true

Size: 348 Bytes

Versions: 2

Compression:

Stored size: 348 Bytes

Contents

module Docket
  class Configuration
    attr_accessor :storage, :storage_namespace

    def initialize
      @storage_namespace = 'docket'
      @storage = nil
    end
  end

  attr_accessor :configuration

  extend self
  
  def configuration
    @configuration ||= Configuration.new    
  end

  def configure
    yield(configuration)
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
docket-0.2.1 lib/docket/configuration.rb
docket-0.2.0 lib/docket/configuration.rb