summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/RubyUtil.cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2014-06-26 20:54:48 +0000
committerBernard Normier <bernard@zeroc.com>2014-06-26 20:54:48 +0000
commit005998b0fe3bcc3fb4e4a850b49164c4e19eb441 (patch)
treef221c20c1065ec13c81d7b5aa8d7bf056aef1e65 /cpp/src/Slice/RubyUtil.cpp
parentFixed ICE-5546: Python Ice/converter demo (diff)
downloadice-005998b0fe3bcc3fb4e4a850b49164c4e19eb441.tar.bz2
ice-005998b0fe3bcc3fb4e4a850b49164c4e19eb441.tar.xz
ice-005998b0fe3bcc3fb4e4a850b49164c4e19eb441.zip
Fix for ICE-5515 (ice_staticId on proxies) in Java, C#, Python, Ruby and PHP (not complete in Python, Ruby and PHP)
Diffstat (limited to 'cpp/src/Slice/RubyUtil.cpp')
-rw-r--r--cpp/src/Slice/RubyUtil.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/cpp/src/Slice/RubyUtil.cpp b/cpp/src/Slice/RubyUtil.cpp
index a93af8ec9fd..79a8185d2f4 100644
--- a/cpp/src/Slice/RubyUtil.cpp
+++ b/cpp/src/Slice/RubyUtil.cpp
@@ -581,6 +581,12 @@ Slice::Ruby::CodeVisitor::visitClassDefStart(const ClassDefPtr& p)
_out.dec();
_out << nl << "end";
+ _out << nl << "def " << name << "Prx.ice_staticId()";
+ _out.inc();
+ _out << nl << "'" << scoped << "'";
+ _out.dec();
+ _out << nl << "end";
+
_out.dec();
_out << nl << "end"; // End of proxy class.
}