Class: Qonfig::Commands::Instantiation::ValuesFile Private
- Defined in:
- lib/qonfig/commands/instantiation/values_file.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.
Constant Summary collapse
- SELF_LOCATED_FILE_DEFINITION =
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.
:self
- NO_EXPOSE =
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.
nil
- DEFAULT_STRICT_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.
false
- DEFAULT_FORMAT =
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.
:dynamic
Instance Attribute Summary collapse
- #caller_location ⇒ String readonly private
- #expose ⇒ NilClass, ... readonly private
- #file_path ⇒ String, Symbol readonly private
- #format ⇒ String, Symbol readonly private
- #strict ⇒ Boolean readonly private
Instance Method Summary collapse
- #call(data_set, settings) ⇒ void private
- #initialize(file_path, caller_location, format: DEFAULT_FORMAT, strict: DEFAULT_STRICT_BEHAVIOR, expose: NO_EXPOSE) ⇒ void constructor private
Methods inherited from Base
inheritable=, inheritable?, #inheritable?, inherited
Constructor Details
#initialize(file_path, caller_location, format: DEFAULT_FORMAT, strict: DEFAULT_STRICT_BEHAVIOR, expose: NO_EXPOSE) ⇒ 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.
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'lib/qonfig/commands/instantiation/values_file.rb', line 72 def initialize( file_path, caller_location, format: DEFAULT_FORMAT, strict: DEFAULT_STRICT_BEHAVIOR, expose: NO_EXPOSE ) prevent_incompatible_attributes!(file_path, format, strict, expose) @file_path = file_path @caller_location = caller_location @format = format @strict = strict @expose = expose end |
Instance Attribute Details
#caller_location ⇒ String (readonly)
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.
43 44 45 |
# File 'lib/qonfig/commands/instantiation/values_file.rb', line 43 def caller_location @caller_location end |
#expose ⇒ NilClass, ... (readonly)
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.
61 62 63 |
# File 'lib/qonfig/commands/instantiation/values_file.rb', line 61 def expose @expose end |
#file_path ⇒ String, Symbol (readonly)
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.
37 38 39 |
# File 'lib/qonfig/commands/instantiation/values_file.rb', line 37 def file_path @file_path end |
#format ⇒ String, Symbol (readonly)
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.
49 50 51 |
# File 'lib/qonfig/commands/instantiation/values_file.rb', line 49 def format @format end |
#strict ⇒ Boolean (readonly)
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.
55 56 57 |
# File 'lib/qonfig/commands/instantiation/values_file.rb', line 55 def strict @strict end |
Instance Method Details
#call(data_set, settings) ⇒ 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.
94 95 96 97 98 99 |
# File 'lib/qonfig/commands/instantiation/values_file.rb', line 94 def call(data_set, settings) settings_values = load_settings_values return unless settings_values settings_values = (settings_values[expose.to_sym] || settings_values[expose.to_s]) if expose data_set.configure(settings_values) if settings_values end |