diff options
| author | Alan Conway <aconway@apache.org> | 2007-08-09 14:39:07 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2007-08-09 14:39:07 +0000 |
| commit | d2015d708bdb0c660cddd6969996c23daa6a5c49 (patch) | |
| tree | 0b71b1447a45dca0b1e8c7f0f8d3d95d50de0faa /cpp/rubygen/samples | |
| parent | 462fd7ae8c6ac92730ebc497a9140ecec0cc03d9 (diff) | |
| download | qpid-python-d2015d708bdb0c660cddd6969996c23daa6a5c49.tar.gz | |
Avoid clash with built-in ruby function Object.methods():n
- Renamed methods*() to amqp_methods, classes*() to amqp_classes.
- Renamed CppGen.class_() to cpp_class.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@564225 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/rubygen/samples')
| -rwxr-xr-x | cpp/rubygen/samples/Operations.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/rubygen/samples/Operations.rb b/cpp/rubygen/samples/Operations.rb index 1c245ca188..6b0a24a26c 100755 --- a/cpp/rubygen/samples/Operations.rb +++ b/cpp/rubygen/samples/Operations.rb @@ -31,7 +31,7 @@ class #{handlerclass} : Invocable { virtual ~#{handlerclass}() {} // Protocol methods EOS - c.methods_on(@chassis).each { |m| handler_method(m) } + c.amqp_methods_on(@chassis).each { |m| handler_method(m) } gen <<EOS }; // class #{handlerclass} @@ -65,13 +65,13 @@ class #{@classname} { // Inner classes EOS - indent { @amqp.classes.each { |c| handler_class(c) } } + indent { @amqp.amqp_classes.each { |c| handler_class(c) } } gen <<EOS // Method handler get methods EOS - indent { @amqp.classes.each { |c| handler_get(c) } } + indent { @amqp.amqp_classes.each { |c| handler_get(c) } } gen <<EOS }; /* class #{@classname} */ } |
