Module: ModuleCluster::CascadeFeatures::Subclass

Extended by:
PerformCascades
Defined in:
lib/module-cluster.rb,
lib/module-cluster/_private_/ModuleCluster/CascadeFeatures/Subclass.rb

Instance Method Summary collapse

Methods included from PerformCascades

cascade_block_into_hooked_instance, cascade_modules_into_hooked_instance, collect_block_runtime_result_modules, include_extend_modules, include_or_extend_hooked_instance, perform_cascades, should_include_or_extend_instance?

Instance Method Details

#inherited(hooked_instance) ⇒ Object

inherited #



10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/module-cluster/_private_/ModuleCluster/CascadeFeatures/Subclass.rb', line 10

def inherited( hooked_instance )

  ::ModuleCluster::CascadeFeatures.perform_cascades( self, 
                                                     :inherited, 
                                                     hooked_instance, 
                                                     cluster_stack.inherited_hooks )
  
  # we don't call super because we don't want to run our inherited action multiple times
  # that means if you are messing with #inherited on your own (whoever is reading this code)
  # then you need to consider the order your #inherited will be inserted in relation to
  # the one provided by module-cluster
  
end