RGen - Ruby Modelling and Generator Framework

RGen is a framework for Model Driven Software Development (MDSD)in Ruby. This means that it helps you build Metamodels, instantiate Models, modify and transform Models and finally generate arbitrary textual content from it.

RGen features include:

Download

Get the latest release from Github: github.com/mthiede/rgen

Installation

Install RGen as a Ruby gem:

gem install rgen

Running the Tests

Change to the 'test' folder and run the test suite:

cd test
ruby rgen_test.rb

Documentation

RDoc documentation is available at Github: mthiede.github.com/rgen/

Find the main documentation parts for:

Examples

There are several examples of using RGen within the framework itself.

Metamodel Definition:

lib/rgen/ecore/ecore.rb
lib/metamodels/uml13_metamodel.rb

Instantiation:

lib/rgen/instantiator/xmi11_instantiator.rb
lib/rgen/instantiator/ecore_xml_instantiator.rb

Transformations:

lib/rgen/ecore/ruby_to_ecore.rb
lib/transformers/uml13_to_ecore.rb

Generators:

lib/mmgen/metamodel_generator.rb

License

RGen is released under the MIT license.