diff options
Diffstat (limited to 'cpp/rubygen/amqpgen.rb')
-rwxr-xr-x | cpp/rubygen/amqpgen.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/cpp/rubygen/amqpgen.rb b/cpp/rubygen/amqpgen.rb index 5952b494df..efd5b024ac 100755 --- a/cpp/rubygen/amqpgen.rb +++ b/cpp/rubygen/amqpgen.rb @@ -89,7 +89,7 @@ end class AmqpElement def wrap(xml) - return nil if ["doc","assert","rule"].include? xml.name + return nil if ["assert","rule"].include? xml.name eval("Amqp"+xml.name.caps).new(xml, self) or raise "nil wrapper" end @@ -103,7 +103,7 @@ class AmqpElement @cache_children[nil]=@children end - attr_reader :parent, :xml, :children + attr_reader :parent, :xml, :children, :doc amqp_attr_reader :name, :label # List of children of type elname, or all children if elname @@ -129,6 +129,11 @@ end AmqpResponse = AmqpElement +class AmqpDoc < AmqpElement + def initialize(xml,parent) super; end + def text() @xml.text end +end + class AmqpDomain < AmqpElement def initialize(xml, parent) super; end amqp_attr_reader :type |