Sha256: 74dc374b28efd034ce438694533dea37a74d7260a4208c21cc1181ca09bb0075
Contents?: true
Size: 612 Bytes
Versions: 94
Compression:
Stored size: 612 Bytes
Contents
# frozen_string_literal: true module RuboCop module AST # 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. class ModuleNode < Node # The identifer for this `module` node. # # @return [Node] the identifer of the module def identifier node_parts[0] end # The body of this `module` node. # # @return [Node, nil] the body of the module def body node_parts[1] end end end end
Version data entries
94 entries across 74 versions & 8 rubygems