module Qa

This module loads linked data authorities and provides access to their configurations.

Constants

VERSION

Public Class Methods

config() { |config| ... } click to toggle source

@api public

Exposes the Questioning Authority configuration

@yield [Qa::Configuration] if a block is passed @return [Qa::Configuration] @see Qa::Configuration for configuration options

# File lib/qa.rb, line 19
def self.config(&block)
  @config ||= Qa::Configuration.new

  yield @config if block

  @config
end
deprecation_warning(in_msg: nil, msg:) click to toggle source
# File lib/qa.rb, line 27
def self.deprecation_warning(in_msg: nil, msg:)
  return if Rails.env == 'test'
  in_msg = in_msg.present? ? "In #{in_msg}, " : ''
  warn "[DEPRECATED] #{in_msg}#{msg}  It will be removed in the next major release."
end