Sha256: 732c26517bff233826833bcbab28b6a4ed3a759baa5422417fcd48bcbc859421
Contents?: true
Size: 588 Bytes
Versions: 6
Compression:
Stored size: 588 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 alias lhs short_name # The expression being assigned to the variable. # # @return [Node] the expression being assigned. def expression node_parts[2] end alias rhs expression end end end
Version data entries
6 entries across 6 versions & 1 rubygems