Sha256: 41f597fb3e07efc9bd9c84f70037dba21de0f272987c595fa492bd349dcd73ac

Contents?: true

Size: 518 Bytes

Versions: 4

Compression:

Stored size: 518 Bytes

Contents

require "sneakers"

module Tennis
  module Worker
    autoload :Deferable, "tennis/worker/deferable"
    autoload :Generic,   "tennis/worker/generic"
  end

  module Serializer
    autoload :Generic, "tennis/serializer/generic"
  end

  autoload :Configuration, "tennis/configuration"

  def self.configure
    @config = Configuration.new
    yield @config if block_given?
    @config.finalize!
  end

  def self.config
    @config or fail "You must run Tennis.configure before accessing the configuration"
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tennis-jobs-0.3.1 lib/tennis.rb
tennis-jobs-0.3.0 lib/tennis.rb
tennis-jobs-0.2.0 lib/tennis.rb
tennis-jobs-0.1.0 lib/tennis.rb