#include <rubycodegenerator.h>
◆ RubyCodeGenerator()
RubyCodeGenerator::RubyCodeGenerator |
( |
| ) |
|
◆ ~RubyCodeGenerator()
RubyCodeGenerator::~RubyCodeGenerator |
( |
| ) |
|
|
virtual |
◆ cppToRubyName()
QString RubyCodeGenerator::cppToRubyName |
( |
const QString & |
cppName | ) |
|
|
static |
Convert C++ names such as 'm_foobar' or pFoobar to just 'foobar' for ruby.
- Parameters
-
cppName | the C++ name to be converted |
- Returns
- the ruby name as string
◆ cppToRubyType()
QString RubyCodeGenerator::cppToRubyType |
( |
const QString & |
cppType | ) |
|
|
static |
Convert a C++ type such as 'int' or 'QWidget' to ruby types Integer and Qt::Widget.
- Parameters
-
cppType | the C++ type to be converted |
- Returns
- the ruby type as string
◆ getAutoGenerateAssocAccessors()
bool RubyCodeGenerator::getAutoGenerateAssocAccessors |
( |
| ) |
|
◆ getAutoGenerateAttribAccessors()
bool RubyCodeGenerator::getAutoGenerateAttribAccessors |
( |
| ) |
|
◆ getCodeViewerDialog()
Get the editing dialog for this code document.
- Returns
- code viewer dialog object
Reimplemented from AdvancedCodeGenerator.
◆ getListFieldClassName()
QString RubyCodeGenerator::getListFieldClassName |
( |
| ) |
|
|
static |
Get the list variable class name to use. For Ruby, we have set this to "Array".
- Returns
- name of list field class
◆ getRubyPolicy()
Utility function for getting the ruby code generation policy.
- Returns
- Ruby code generation policy object
◆ language()
Return our language.
- Returns
- language identifier
Implements CodeGenerator.
◆ newClassifierCodeDocument()
Create a new classifier code document.
- Parameters
-
classifier | the UML classifier |
- Returns
- a new classifier code document
Implements AdvancedCodeGenerator.
◆ reservedKeywords()
QStringList RubyCodeGenerator::reservedKeywords |
( |
| ) |
const |
|
virtual |
Get list of reserved keywords.
- Returns
- the list of reserved keywords
Reimplemented from CodeGenerator.
The documentation for this class was generated from the following files: