Sha256: d11f39c9fa0deee49c18f649a8502106c6e568ed3cb3c23080f0dc71e089e81e
Contents?: true
Size: 768 Bytes
Versions: 138
Compression:
Stored size: 768 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 def send_type? true end private def first_argument_index 2 end end end end
Version data entries
138 entries across 138 versions & 19 rubygems