Sha256: 83299bf6561962ea6d028dbcd3002ddd8795c5d373a53e3c9278ab7d73e208ac
Contents?: true
Size: 673 Bytes
Versions: 25
Compression:
Stored size: 673 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 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
25 entries across 25 versions & 3 rubygems