module ActiveFacts::TraitInjector

Public Class Methods

included(other) click to toggle source
# File lib/activefacts/generators/helpers/inject.rb, line 5
def self.included other
  overlap = Metamodel.constants & other.constants
  overlap.each do |const|
    mix_into = Metamodel.const_get(const)
    mix_in = other.const_get(const)
    mix_into.instance_exec {
      include(mix_in)
    }
  end
end