class RuboCop::AST::SelfClassNode

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

Public Instance Methods

body() click to toggle source

The body of this `sclass` node.

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

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

The identifer for this `sclass` node. (Always `self`.)

@return [Node] the identifer of the class

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