lib/rubocop/cop/mixin/def_node.rb in rubocop-1.55.0 vs lib/rubocop/cop/mixin/def_node.rb in rubocop-1.55.1
- old
+ new
@@ -17,10 +17,10 @@
node_visibility(node) != :public
end
# @!method non_public_modifier?(node)
def_node_matcher :non_public_modifier?, <<~PATTERN
- (send nil? {:private :protected} ({def defs} ...))
+ (send nil? {:private :protected :private_class_method} ({def defs} ...))
PATTERN
end
end
end