Module: Qonfig::Configurable::InstanceMethods Private
- Defined in:
- lib/qonfig/configurable.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.
Instance Method Summary collapse
- #config ⇒ Qonfig::DataSet
- #configure(options_map = {}, &block) ⇒ void
- #shared_config ⇒ Qonfig::DataSet
Instance Method Details
#config ⇒ Qonfig::DataSet
91 92 93 94 95 |
# File 'lib/qonfig/configurable.rb', line 91 def config self.class.instance_variable_get(:@__qonfig_definition_lock__).synchronize do @__qonfig_config__ ||= self.class.instance_variable_get(:@__qonfig_config_klass__).new end end |
#configure(options_map = {}, &block) ⇒ void
This method returns an undefined value.
111 112 113 114 115 |
# File 'lib/qonfig/configurable.rb', line 111 def configure( = {}, &block) self.class.instance_variable_get(:@__qonfig_access_lock__).synchronize do config.configure(, &block) end end |
#shared_config ⇒ Qonfig::DataSet
101 102 103 |
# File 'lib/qonfig/configurable.rb', line 101 def shared_config self.class.config end |