Sha256: da5293c475e4cd8b683709ee36e947876f4467fcb75896ffbf481a576742d794
Contents?: true
Size: 723 Bytes
Versions: 39
Compression:
Stored size: 723 Bytes
Contents
# frozen_string_literal: true module RuboCop module AST # A node extension for `send` nodes. This will be used in place of a plain # node when the builder constructs the AST, making its methods available # to all `send` nodes within RuboCop. class SendNode < Node include ParameterizedNode::RestArguments include MethodDispatchNode # @!method attribute_accessor?(node = self) def_node_matcher :attribute_accessor?, <<~PATTERN [(send nil? ${:attr_reader :attr_writer :attr_accessor :attr} $...) (_ _ _ _ ...)] PATTERN private def first_argument_index 2 end end end end
Version data entries
39 entries across 35 versions & 7 rubygems