Module: SmartCore::Container::Mixin::ClassMethods Private
- Defined in:
- lib/smart_core/container/mixin.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
#container ⇒ SmartCore::Container
68 69 70 71 72 |
# File 'lib/smart_core/container/mixin.rb', line 68 def container @__smart_core_container_access_lock__.thread_safe do @__smart_core_container__ ||= @__smart_core_container_klass__.new end end |
#dependencies(freeze_state: false, &block) ⇒ void
This method returns an undefined value.
55 56 57 58 59 60 61 62 |
# File 'lib/smart_core/container/mixin.rb', line 55 def dependencies(freeze_state: false, &block) @__smart_core_container_access_lock__.thread_safe do @__smart_core_container_klass__.instance_eval(&block) if block_given? @__smart_core_container_klass__.instance_eval do freeze_state! end if freeze_state end end |