Sha256: 18b46bbf93e752be46522f1c7407f4579c901290ba950b4a9e45b1e0b31f6dc1
Contents?: true
Size: 534 Bytes
Versions: 2
Compression:
Stored size: 534 Bytes
Contents
# frozen_string_literal: true module RuboCop module AST # A node extension for `casgn` nodes. # This will be used in place of a plain node when the builder constructs # the AST, making its methods available to all assignment nodes within RuboCop. class CasgnNode < Node include ConstantNode alias name short_name # The expression being assigned to the variable. # # @return [Node] the expression being assigned. def expression node_parts[2] end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubocop-ast-1.33.1 | lib/rubocop/ast/node/casgn_node.rb |
rubocop-ast-1.33.0 | lib/rubocop/ast/node/casgn_node.rb |