Class: Qonfig::Imports::Abstract Private

Inherits:
Object
  • Object
show all
Defined in:
lib/qonfig/imports/abstract.rb

Overview

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

Since:

  • 0.18.0

Direct Known Subclasses

DirectKey, Mappings

Constant Summary collapse

EMPTY_PREFIX =

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

Returns:

  • (String)

Since:

  • 0.18.0

''
DEFAULT_RAW_BEHAVIOR =

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

Returns:

  • (Boolean)

Since:

  • 0.18.0

false

Instance Method Summary collapse

Constructor Details

#initialize(seeded_klass, imported_config, prefix: EMPTY_PREFIX, raw: DEFAULT_RAW_BEHAVIOR) ⇒ void

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

Parameters:

  • seeded_klass (Class)
  • imported_config (Qonfig::DataSet)
  • prefix (Hash) (defaults to: EMPTY_PREFIX)

    a customizable set of options

  • raw (Hash) (defaults to: DEFAULT_RAW_BEHAVIOR)

    a customizable set of options

Options Hash (prefix:):

  • (String, Symbol)

Options Hash (raw:):

  • (Boolean)

Since:

  • 0.18.0



26
27
28
29
30
31
# File 'lib/qonfig/imports/abstract.rb', line 26

def initialize(seeded_klass, imported_config, prefix: EMPTY_PREFIX, raw: DEFAULT_RAW_BEHAVIOR)
  @seeded_klass = seeded_klass
  @imported_config = imported_config
  @prefix = prefix
  @raw = !!raw
end

Instance Method Details

#import!(settings_interface = Module.new) ⇒ void

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

This method returns an undefined value.

Parameters:

  • settings_interface (Module) (defaults to: Module.new)

Raises:

  • (NoMethodError)

Since:

  • 0.18.0



38
39
40
41
42
# File 'lib/qonfig/imports/abstract.rb', line 38

def import!(settings_interface = Module.new)
  # :nocov:
  raise NoMethodError
  # :nocov:
end