# frozen_string_literal: true # @api private # @since 0.18.0 module Qonfig::Imports::DSL class << self # @param base_klass [Class] # @return [void] # # @api private # @since 0.18.0 def included(base_klass) base_klass.extend(ClassMethods) end end # @api private # @since 0.18.0 module ClassMethods # @param imported_config [Qonfig::DataSet] # @param imported_setting_keys [Array] # @option prefix [String, Symbol] # @option raw [Boolean] # @option mappings [Hash] # @option accessor [Boolean] # @return [void] # # @api public # @since 0.18.0 # @version 0.21.0 def import_settings( imported_config, *imported_setting_keys, prefix: Qonfig::Imports::Abstract::EMPTY_PREFIX, raw: Qonfig::Imports::Abstract::DEFAULT_RAW_BEHAVIOR, mappings: Qonfig::Imports::Mappings::EMPTY_MAPPINGS, accessor: Qonfig::Imports::Abstract::AS_ACCESSOR ) Qonfig::Imports::General.import!( self, imported_config, *imported_setting_keys, prefix: prefix, raw: raw, mappings: mappings, accessor: accessor ) end end end