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
90 91 92 93 94 |
# File 'lib/qonfig/configurable.rb', line 90 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.
110 111 112 113 114 |
# File 'lib/qonfig/configurable.rb', line 110 def configure( = {}, &block) self.class.instance_variable_get(:@__qonfig_access_lock__).synchronize do config.configure(, &block) end end |
#shared_config ⇒ Qonfig::DataSet
100 101 102 |
# File 'lib/qonfig/configurable.rb', line 100 def shared_config self.class.config end |