Sha256: f1a79a5238117ba26a6fcc7f1c8483a67033d2310307a0a762707ce361c06131
Contents?: true
Size: 1.21 KB
Versions: 9
Compression:
Stored size: 1.21 KB
Contents
# 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<String,Symbol>] # @option prefix [String, Symbol] # @option raw [Boolean] # @option mappings [Hash<String|Symbol,String|Symbol>] # @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
Version data entries
9 entries across 9 versions & 1 rubygems