Class: TableSync::Plugins::Abstract Private

Inherits:
Object
  • Object
show all
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.

Since:

  • 2.2.0

Class Method Summary collapse

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.

Since:

  • 2.2.0



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.

Since:

  • 2.2.0



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.

Since:

  • 2.2.0



35
36
37
# File 'lib/table_sync/plugins/abstract.rb', line 35

def loaded?
  __thread_safe__ { @__loaded__ }
end