Sha256: 5f34c4a376a3ca8b7d8fb396b41d2e831457cacd2e5b272dba8944be3205c242

Contents?: true

Size: 424 Bytes

Versions: 241

Compression:

Stored size: 424 Bytes

Contents

module RGen

module MetamodelBuilder

def self.MMMultiple(*superclasses)
  c = Class.new(MMBase)
  class << c
    attr_reader :multiple_superclasses
  end
  c.instance_variable_set(:@multiple_superclasses, superclasses)
  superclasses.collect{|sc| sc.ancestors}.flatten.
    reject{|m| m.is_a?(Class)}.each do |arg|
      c.instance_eval do
        include arg
      end
  end
  return c
end

end

end

Version data entries

241 entries across 241 versions & 3 rubygems

Version Path
rgen-0.10.2 lib/rgen/metamodel_builder/mm_multiple.rb
rgen-0.10.0 lib/rgen/metamodel_builder/mm_multiple.rb
rgen-0.9.1 ./lib/rgen/metamodel_builder/mm_multiple.rb
rgen-0.8.3 lib/rgen/metamodel_builder/mm_multiple.rb
rgen-0.8.4 lib/rgen/metamodel_builder/mm_multiple.rb
rgen-0.9.0 lib/rgen/metamodel_builder/mm_multiple.rb
puppet-retrospec-1.8.0 vendor/pup410/lib/puppet/vendor/rgen/lib/rgen/metamodel_builder/mm_multiple.rb
puppet-retrospec-1.7.0 vendor/pup410/lib/puppet/vendor/rgen/lib/rgen/metamodel_builder/mm_multiple.rb
puppet-4.10.12 lib/puppet/vendor/rgen/lib/rgen/metamodel_builder/mm_multiple.rb
puppet-4.10.12-x86-mingw32 lib/puppet/vendor/rgen/lib/rgen/metamodel_builder/mm_multiple.rb
puppet-4.10.12-x64-mingw32 lib/puppet/vendor/rgen/lib/rgen/metamodel_builder/mm_multiple.rb
puppet-4.10.12-universal-darwin lib/puppet/vendor/rgen/lib/rgen/metamodel_builder/mm_multiple.rb
puppet-4.10.11 lib/puppet/vendor/rgen/lib/rgen/metamodel_builder/mm_multiple.rb
puppet-4.10.11-x86-mingw32 lib/puppet/vendor/rgen/lib/rgen/metamodel_builder/mm_multiple.rb
puppet-4.10.11-x64-mingw32 lib/puppet/vendor/rgen/lib/rgen/metamodel_builder/mm_multiple.rb
puppet-4.10.11-universal-darwin lib/puppet/vendor/rgen/lib/rgen/metamodel_builder/mm_multiple.rb
puppet-4.10.10 lib/puppet/vendor/rgen/lib/rgen/metamodel_builder/mm_multiple.rb
puppet-4.10.10-x86-mingw32 lib/puppet/vendor/rgen/lib/rgen/metamodel_builder/mm_multiple.rb
puppet-4.10.10-x64-mingw32 lib/puppet/vendor/rgen/lib/rgen/metamodel_builder/mm_multiple.rb
puppet-4.10.10-universal-darwin lib/puppet/vendor/rgen/lib/rgen/metamodel_builder/mm_multiple.rb