Module: SmartCore::Container::Mixin
- Defined in:
- lib/smart_core/container/mixin.rb
Overview
Defined Under Namespace
Modules: ClassInheritance, ClassMethods, InstanceMethods
Class Method Summary collapse
- .included(base_klass) ⇒ void private
Class Method Details
.included(base_klass) ⇒ void
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.
This method returns an undefined value.
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/smart_core/container/mixin.rb', line 14 def included(base_klass) # rubocop:disable Layout/LineLength base_klass.instance_variable_set(:@__smart_core_container_access_lock__, SmartCore::Engine::ReadWriteLock.new) base_klass.instance_variable_set(:@__smart_core_container_klass__, Class.new(SmartCore::Container)) base_klass.instance_variable_set(:@__smart_core_container__, nil) # rubocop:enable Layout/LineLength base_klass.extend(ClassMethods) base_klass.include(InstanceMethods) base_klass.singleton_class.prepend(ClassInheritance) end |