module RbPlusPlus::Builders::ModuleHelpers

Public Instance Methods

with_module_functions() click to toggle source

Expose a function in this module

# File lib/rbplusplus/builders/helpers/module.rb, line 13
def with_module_functions
  [self.code.functions].flatten.each do |func|
    next if do_not_wrap?(func)
    add_child ModuleFunctionNode.new(func, self)
  end
end
with_modules() click to toggle source

Build up any user-defined modules for this node

# File lib/rbplusplus/builders/helpers/module.rb, line 6
def with_modules
  self.modules.each do |mod|
    add_child ModuleNode.new(mod, self)
  end
end