Module: Multiton::Inclusive
- Included in:
- Multiton, MetaMethods
- Defined in:
- lib/multiton.rb
Overview
Multiton can be included in another module, in which case that module effectively becomes a multiton behavior distributor too. This is why we propogate #included to the base module. by putting it in another module.
-- def append_features(mod) # help out people counting on transitive mixins unless mod.instance_of?(Class) raise TypeError, "Inclusion of Multiton in module #mod" end super end ++