Module: Flows::Util::InheritableSingletonVars::IsolationStrategy::InheritanceCallback Private

Defined in:
lib/flows/util/inheritable_singleton_vars/isolation_strategy.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.

Since:

  • 0.4.0

Instance Method Summary collapse

Instance Method Details

#extended(child_mod) ⇒ Object

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:

  • 0.4.0



34
35
36
37
38
39
40
# File 'lib/flows/util/inheritable_singleton_vars/isolation_strategy.rb', line 34

def extended(child_mod)
  IsolationStrategy.migrate(self, child_mod)

  child_mod.singleton_class.prepend InheritanceCallback

  super
end

#included(child_mod) ⇒ Object

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:

  • 0.4.0



26
27
28
29
30
31
32
# File 'lib/flows/util/inheritable_singleton_vars/isolation_strategy.rb', line 26

def included(child_mod)
  IsolationStrategy.migrate(self, child_mod)

  child_mod.singleton_class.prepend InheritanceCallback

  super
end

#inherited(child_class) ⇒ Object

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:

  • 0.4.0



20
21
22
23
24
# File 'lib/flows/util/inheritable_singleton_vars/isolation_strategy.rb', line 20

def inherited(child_class)
  IsolationStrategy.migrate(self, child_class)

  super
end