How to Generate Ruby from UML (Instant Generator Guide)?
Instant generator is the process of producing source code from class model. Designers or software architects can build a high level domain class model, then pass to programmer to perform more lower-level system or application modeling and eventually generate source code from implementation model. This chain makes building software faster and cheaper. In this chapter, we will go through the instant generation of Ruby. To generate code by instant generator:
- Select Tools > Code > Instant Generator from the toolbar.
- In the Instant Generator window, select Ruby as the Language.
- Fill in the Output Path, which is the directory where you want the code to generate to.
- Select the classes to generate code. In the Diagrams tab, you can select the diagrams to generate code for classes in the selected diagrams. Alternatively, open the Model Elements tab and select the classes to generate code.
Selecting classes to generate code - Optionally configure the generator options. Read the section below for a description of options.
- Click Generate to generate code.
Overview of Instant Generator
Overview of instant generator dialog box |
|
|||||||||||||||||||||||||||||||||||||||
Description of instant generator dialog box |
Generator options
On the Instant Generator dialog box you can configure some of the common code options at the right of dialog box. You can also configure the advanced options for more detailed settings by clicking the Advanced Options... button.
Advanced Options dialog box |
Below is a description of available options.
|
||||||||||||||||||||||||||
A description of advanced options |
Related Resources
The following resources may help you to learn more about the topic discussed in this page.
15. Instant Generator for Ada95 | Table of Contents | 17. Customizing code generation |