Module: Flows::Util::InheritableSingletonVars::DupStrategy::Injector Private

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



48
49
50
51
52
53
# File 'lib/flows/util/inheritable_singleton_vars/dup_strategy.rb', line 48

def extended(mod)
  Migrator.call(self, mod)
  mod.singleton_class.prepend Injector

  super
end

#included(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



41
42
43
44
45
46
# File 'lib/flows/util/inheritable_singleton_vars/dup_strategy.rb', line 41

def included(mod)
  Migrator.call(self, mod)
  mod.singleton_class.prepend Injector

  super
end

#inherited(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



55
56
57
58
59
60
# File 'lib/flows/util/inheritable_singleton_vars/dup_strategy.rb', line 55

def inherited(mod)
  Migrator.call(self, mod)
  mod.singleton_class.prepend Injector

  super
end