Module: ModuleCluster::Define::ClusterStack
- Included in:
- Cluster, ClusterCascades, ClusterCascadesToClass, ClusterCascadesToModule
- Defined in:
- lib/module-cluster.rb,
lib/module-cluster/ModuleCluster/Define/ClusterStack.rb
Instance Method Summary collapse
-
#cluster_stack ⇒ Object
cluster_stack #.
Instance Method Details
#cluster_stack ⇒ Object
cluster_stack #
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/module-cluster/ModuleCluster/Define/ClusterStack.rb', line 8 def cluster_stack cluster_stack = nil class_or_module_self = self ModuleCluster::Define::ClusterStack.module_eval do @cluster_stacks ||= Hash.new unless cluster_stack = @cluster_stacks[ class_or_module_self ] cluster_stack ||= ModuleCluster::ClusterStack.new @cluster_stacks[ class_or_module_self ] = cluster_stack end end return cluster_stack end |