class RuboCop::AST::ModuleNode

A node extension for `module` nodes. This will be used in place of a plain node when the builder constructs the AST, making its methods available to all `module` nodes within RuboCop.

Public Instance Methods

body() click to toggle source

The body of this `module` node.

@return [Node, nil] the body of the module

# File lib/rubocop/ast/node/module_node.rb, line 19
def body
  node_parts[1]
end
identifier() click to toggle source

The identifer for this `module` node.

@return [Node] the identifer of the module

# File lib/rubocop/ast/node/module_node.rb, line 12
def identifier
  node_parts[0]
end