diff options
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/Slice/RubyUtil.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cpp/src/Slice/RubyUtil.cpp b/cpp/src/Slice/RubyUtil.cpp index 185aadf23d5..d9b8c6121f7 100644 --- a/cpp/src/Slice/RubyUtil.cpp +++ b/cpp/src/Slice/RubyUtil.cpp @@ -637,6 +637,19 @@ Slice::Ruby::CodeVisitor::visitClassDefStart(const ClassDefPtr& p) _out << "::Ice::OperationMode::Idempotent"; break; } + _out << ", "; + switch((*s)->sendMode()) + { + case Operation::Normal: + _out << "::Ice::OperationMode::Normal"; + break; + case Operation::Nonmutating: + _out << "::Ice::OperationMode::Nonmutating"; + break; + case Operation::Idempotent: + _out << "::Ice::OperationMode::Idempotent"; + break; + } _out << ", " << ((p->hasMetaData("amd") || (*s)->hasMetaData("amd")) ? "true" : "false") << ", ["; for(t = params.begin(), count = 0; t != params.end(); ++t) { |