Sha256: fab051f3f62ad3a1a3e0add8a2178812fe3e0250ddcb4d6896a9fe20b6c6239d

Contents?: true

Size: 504 Bytes

Versions: 10

Compression:

Stored size: 504 Bytes

Contents

module RbPlusPlus
  module Builders
    module ModuleHelpers

      # Build up any user-defined modules for this node
      def with_modules
        self.modules.each do |mod|
          add_child ModuleNode.new(mod, self)
        end
      end

      # Expose a function in this module
      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

    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rbplusplus-1.4.0 lib/rbplusplus/builders/helpers/module.rb
rbplusplus-1.3.0 lib/rbplusplus/builders/helpers/module.rb
rbplusplus-1.2.1 lib/rbplusplus/builders/helpers/module.rb
rbplusplus-1.2.0 lib/rbplusplus/builders/helpers/module.rb
rbplusplus-1.1.0 lib/rbplusplus/builders/helpers/module.rb
rbplusplus-1.0.3 lib/rbplusplus/builders/helpers/module.rb
rbplusplus-1.0.1 lib/rbplusplus/builders/helpers/module.rb
rbplusplus-1.0 lib/rbplusplus/builders/helpers/module.rb
rbplusplus-0.9.1 lib/rbplusplus/builders/helpers/module.rb
rbplusplus-0.9 lib/rbplusplus/builders/helpers/module.rb