summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/RubyUtil.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2008-02-12 13:12:06 -0330
committerDwayne Boone <dwayne@zeroc.com>2008-02-12 13:12:06 -0330
commit3af302d7e122640425a50cfa085d15e1384b1501 (patch)
tree82dfc425dc3e731a2569e82e5aaf3c4bd4a524a3 /cpp/src/Slice/RubyUtil.cpp
parentMerge branch 'master' of ssh://cvs.zeroc.com/home/git/ice (diff)
downloadice-3af302d7e122640425a50cfa085d15e1384b1501.tar.bz2
ice-3af302d7e122640425a50cfa085d15e1384b1501.tar.xz
ice-3af302d7e122640425a50cfa085d15e1384b1501.zip
Bug 2582 - Added ice_staticId
Diffstat (limited to 'cpp/src/Slice/RubyUtil.cpp')
-rw-r--r--cpp/src/Slice/RubyUtil.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/cpp/src/Slice/RubyUtil.cpp b/cpp/src/Slice/RubyUtil.cpp
index 3322899a24e..2f861a8e283 100644
--- a/cpp/src/Slice/RubyUtil.cpp
+++ b/cpp/src/Slice/RubyUtil.cpp
@@ -407,6 +407,12 @@ Slice::Ruby::CodeVisitor::visitClassDefStart(const ClassDefPtr& p)
_out << nl << "class " << name;
_out.inc();
_out << nl << "include " << name << "_mixin";
+ _out << nl;
+ _out << nl << "def " << name << ".ice_staticId()";
+ _out.inc();
+ _out << nl << "'" << scoped << "'";
+ _out.dec();
+ _out << nl << "end";
_out.dec();
_out << nl << "end";
}
@@ -422,6 +428,12 @@ Slice::Ruby::CodeVisitor::visitClassDefStart(const ClassDefPtr& p)
}
_out.inc();
_out << nl << "include " << name << "_mixin";
+ _out << nl;
+ _out << nl << "def " << name << ".ice_staticId()";
+ _out.inc();
+ _out << nl << "'" << scoped << "'";
+ _out.dec();
+ _out << nl << "end";
//
// initialize