Common to All Languages
Exclude model elements from the code generation targets
Apply to the model elements that do not generate code, such as "std" package defining the types.
Using TaggedValue
Using Stereotype
Specify the root package for code generation
Apply to the root package of code generation. The Include Guard Macros, Include Directives and Import Statements use the paths below the specified root package.
Set the external classes to the base classes
Apply when you want to set the external classes that are not model elements to the base classes.
Using TaggedValue
Ruby Example Code
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
# ˅
# ˄
class Foo < MiniTest::Unit::TestCase
# ˅
# ˄
# ˅
# ˄
end
# ˅
# ˄
Using Stereotype
Ruby Example Code
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
# ˅
# ˄
class Foo < MiniTest::Unit::TestCase
# ˅
# ˄
# ˅
# ˄
end
# ˅
# ˄
Write comments describing the model elements
Ruby Example Code
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
# ˅
# ˄
# First line comment.
# Second line comment.
class Foo
# ˅
# ˄
# ˅
# ˄
end
# ˅
# ˄