Module: MMGen::MetamodelGenerator
- Defined in:
- lib/mmgen/metamodel_generator.rb
Instance Method Summary collapse
Instance Method Details
#generateMetamodel(rootPackage, out_file) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/mmgen/metamodel_generator.rb', line 11 def generateMetamodel(rootPackage, out_file) tc = RGen::TemplateLanguage::DirectoryTemplateContainer.new(RGen::ECore, File.dirname(out_file)) tpl_path = File.dirname(__FILE__) + '/templates' tc.load(tpl_path) tc.('metamodel_generator::GenerateMetamodel', File.basename(out_file), :for => rootPackage) end |