Sha256: 44993b9c574d417e84b0b535fb1174daae48d422b3c7c7bdfd26755035e06410
Contents?: true
Size: 512 Bytes
Versions: 5
Compression:
Stored size: 512 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 include MethodDispatchNode def_node_matcher :attribute_accessor?, <<~PATTERN (send nil? ${:attr_reader :attr_writer :attr_accessor :attr} $...) PATTERN end end end
Version data entries
5 entries across 5 versions & 3 rubygems