Class: TableSync::Plugins::Abstract Private
- Inherits:
-
Object
- Object
- TableSync::Plugins::Abstract
- Defined in:
- lib/table_sync/plugins/abstract.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.
Class Method Summary collapse
- .inherited(child_klass) ⇒ void private
- .load! ⇒ void private
- .loaded? ⇒ Boolean private
Class Method Details
.inherited(child_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.
12 13 14 15 16 |
# File 'lib/table_sync/plugins/abstract.rb', line 12 def inherited(child_klass) child_klass.instance_variable_set(:@__loaded__, false) child_klass.instance_variable_set(:@__lock__, Mutex.new) super end |
.load! ⇒ 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.
22 23 24 25 26 27 28 29 |
# File 'lib/table_sync/plugins/abstract.rb', line 22 def load! __thread_safe__ do unless @__loaded__ @__loaded__ = true install! end end end |
.loaded? ⇒ Boolean
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.
35 36 37 |
# File 'lib/table_sync/plugins/abstract.rb', line 35 def loaded? __thread_safe__ { @__loaded__ } end |