Module: Qonfig::Imports::DSL::ClassMethods Private

Defined in:
lib/qonfig/imports/dsl.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Since:

  • 0.18.0

Instance Method Summary collapse

Instance Method Details

#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) ⇒ void

This method returns an undefined value.

Parameters:

  • imported_config (Qonfig::DataSet)
  • imported_setting_keys (Array<String,Symbol>)
  • prefix (Hash) (defaults to: Qonfig::Imports::Abstract::EMPTY_PREFIX)

    a customizable set of options

  • raw (Hash) (defaults to: Qonfig::Imports::Abstract::DEFAULT_RAW_BEHAVIOR)

    a customizable set of options

  • mappings (Hash) (defaults to: Qonfig::Imports::Mappings::EMPTY_MAPPINGS)

    a customizable set of options

  • accessor (Hash) (defaults to: Qonfig::Imports::Abstract::AS_ACCESSOR)

    a customizable set of options

Options Hash (prefix:):

  • (String, Symbol)

Options Hash (raw:):

  • (Boolean)

Options Hash (mappings:):

  • (Hash<String|Symbol,String|Symbol>)

Options Hash (accessor:):

  • (Boolean)

Since:

  • 0.18.0

Version:

  • 0.21.0



31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/qonfig/imports/dsl.rb', line 31

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