Class: SmartCore::Initializer::Settings::Base Private
- Inherits:
-
Object
- Object
- SmartCore::Initializer::Settings::Base
- Defined in:
- lib/smart_core/initializer/settings/base.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Direct Known Subclasses
Instance Method Summary collapse
- #assign(value) ⇒ void private
- #dup ⇒ SmartCore::Initializer::Settings::Base private
- #initialize ⇒ void constructor private
- #resolve ⇒ Any private
Constructor Details
#initialize ⇒ 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.
12 13 14 15 |
# File 'lib/smart_core/initializer/settings/base.rb', line 12 def initialize @value = nil @lock = SmartCore::Engine::ReadWriteLock.new end |
Instance Method Details
#assign(value) ⇒ 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.
|
# File 'lib/smart_core/initializer/settings/base.rb', line 22
|
#dup ⇒ SmartCore::Initializer::Settings::Base
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.
34 35 36 37 38 39 40 |
# File 'lib/smart_core/initializer/settings/base.rb', line 34 def dup @lock.write_sync do self.class.new.tap do |duplicate| duplicate.instance_variable_set(:@value, @value) end end end |
#resolve ⇒ Any
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.
|
# File 'lib/smart_core/initializer/settings/base.rb', line 17
|