Class: Qonfig::Compacted
Overview
Defined Under Namespace
Modules: Constructor
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from DSL
compose, define_validator, definition_commands, expose_json, expose_self, expose_toml, expose_yaml, extended, freeze_state!, instance_commands, load_from_env, load_from_json, load_from_self, load_from_toml, load_from_yaml, predefined_validators, re_setting, setting, validate, validators, values_file
#pretty_print
Constructor Details
#initialize(settings_map = {}, &configuration) ⇒ void
Instance Attribute Details
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/compacted.rb', line 61
def ____data_set____
@____data_set____
end
|
Class Method Details
.build(base_config_klass = self, &config_klass_definitions) ⇒ Qonfig::Compacted
18
19
20
21
22
23
24
25
|
# File 'lib/qonfig/compacted.rb', line 18
def build(base_config_klass = self, &config_klass_definitions)
raise(
::Qonfig::ArgumentError,
'Base class should be a type of Qonfig::Compacted'
) unless base_config_klass <= ::Qonfig::Compacted
Class.new(base_config_klass, &config_klass_definitions).new
end
|
.build_from(data_set = ::Qonfig::Compacted::Constructor::NO_INITIAL_DATA_SET, &configurations) ⇒ Qonfig::Compacted
.valid_with?(settings_map = {}, &configurations) ⇒ Boolean
49
50
51
52
53
54
|
# File 'lib/qonfig/compacted.rb', line 49
def valid_with?(settings_map = {}, &configurations)
new(settings_map, &configurations)
true
rescue ::Qonfig::ValidationError
false
end
|
Instance Method Details
#[](key) ⇒ Any
85
86
87
|
# File 'lib/qonfig/compacted.rb', line 85
def [](key)
____data_set____[key]
end
|
#[]=(key, value) ⇒ void
This method returns an undefined value.
95
96
97
|
# File 'lib/qonfig/compacted.rb', line 95
def []=(key, value)
____data_set____[key] = value
end
|