lib/rbplusplus/module.rb in rbplusplus-0.1.1 vs lib/rbplusplus/module.rb in rbplusplus-0.8
- old
+ new
@@ -40,11 +40,13 @@
block.call(self) if block
end
# Specify a C++ namespace from which the contained code will
# be wrapped and exposed to Ruby under this Module.
+ #
+ # Also see Extension#namespace
def namespace(name)
- @node = @parser.namespaces(name)
+ @node = @parser.namespaces.find(:all, :name => name)
end
# Register another module to be defined inside of
# this module. Acts the same as Extension#module.
def module(name, &block)