Sha256: 3d3e42329820a88f5eee699976a24b03ab93617b484cb9260fce637471289e02
Contents?: true
Size: 467 Bytes
Versions: 175
Compression:
Stored size: 467 Bytes
Contents
# frozen_string_literal: true module RuboCop module AST # A node extension for `procarg0` nodes. # This will be used in place of a plain node when the builder constructs # the AST, making its methods available to all `arg` nodes within RuboCop. class Procarg0Node < ArgNode # Returns the name of an argument. # # @return [Symbol, nil] the name of the argument def name node_parts[0].name end end end end
Version data entries
175 entries across 169 versions & 22 rubygems