Sha256: 34cf5e0a4055cbe907a01784a6f562689f7fe0784aa35bf6298b823a9d162bfb

Contents?: true

Size: 497 Bytes

Versions: 22

Compression:

Stored size: 497 Bytes

Contents

# frozen_string_literal: true
require 'qa_server/engine'
require 'qa_server/version'

module QaServer
  extend ActiveSupport::Autoload

  autoload :Configuration

  # @api public
  #
  # Exposes the Questioning Authority configuration
  #
  # @yield [Qa::Configuration] if a block is passed
  # @return [Qa::Configuration]
  # @see Qa::Configuration for configuration options
  def self.config(&block)
    @config ||= QaServer::Configuration.new

    yield @config if block

    @config
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
qa_server-1.1.0 lib/qa_server.rb
qa_server-1.0.0 lib/qa_server.rb