jameskilton/rbgccxml — Issue #8: Node.find() on arguments returning Enumerator
Author: ekarak
Created: 2011-12-06 08:41:40+00:00
State: open

I'm using Ruby1.9.1 and I suspect its Enumerator facility mingles with RbGCCXML:
Whereas a find() on classes and methods returns the actual Node or QueryResult, any call to RbGCCXML::Argument.find() returns an Enumerator which is inconsistent...
using rbgccxml1.0.1 on Ruby1.9.1 in Linux

irb(main):151:0> RootNode.namespaces("OpenZWave").classes.find(:name => "Manager")
=> #"_4277", "name"=>"Manager", ....

irb(main):155:0> RootNode.namespaces("OpenZWave").classes.find(:name => "Manager").methods("WriteConfig")
=> #"_13217", "name"=>"WriteConfig", ....

irb(main):156:0> RootNode.namespaces("OpenZWave").classes.find(:name => "Manager").methods("WriteConfig").arguments.find(:name => '_homeId')
=> #"_homeId", ....