Sha256: b464998acb081c231002a426c001f2e8dfb0bf78f0c17e130da4e1ab71fe2604

Contents?: true

Size: 353 Bytes

Versions: 1

Compression:

Stored size: 353 Bytes

Contents

require "tennis/configuration"

module Tennis
  autoload :Job, "tennis/job"

  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

  def self.logger
    @config.logger
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tennis-jobs-0.4.0 lib/tennis.rb