Module: Qonfig::Configurable::ClassMethods 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
Instance Method Details
#config ⇒ Qonfig::DataSet
77 78 79 80 81 |
# File 'lib/qonfig/configurable.rb', line 77 def config @__qonfig_definition_lock__.synchronize do @__qonfig_config__ ||= @__qonfig_config_klass__.new end end |
#configuration(&block) ⇒ void
This method returns an undefined value.
55 56 57 58 59 |
# File 'lib/qonfig/configurable.rb', line 55 def configuration(&block) @__qonfig_definition_lock__.synchronize do @__qonfig_config_klass__.instance_eval(&block) if block_given? end end |
#configure(options_map = {}, &block) ⇒ void
This method returns an undefined value.
67 68 69 70 71 |
# File 'lib/qonfig/configurable.rb', line 67 def configure( = {}, &block) @__qonfig_access_lock__.synchronize do config.configure(, &block) end end |