class RbPlusPlus::Builders::ConstructorNode

Wrap class constructor(s)

Public Instance Methods

build() click to toggle source
# File lib/rbplusplus/builders/constructor.rb, line 7
def build
  add_child IncludeNode.new(self, "rice/Constructor.hpp", :system)
end
write() click to toggle source
# File lib/rbplusplus/builders/constructor.rb, line 11
def write
  args = [code.parent.qualified_name, code.arguments.map {|a| a.cpp_type.to_cpp }].flatten.compact
  registrations << "\t#{parent.rice_variable}.define_constructor(Rice::Constructor< #{args.join(",")} >());"
end