lib/rubocop/cop/lint/inherit_exception.rb in rubocop-1.10.0 vs lib/rubocop/cop/lint/inherit_exception.rb in rubocop-1.11.0
- old
+ new
@@ -56,9 +56,10 @@
SystemExit
].freeze
RESTRICT_ON_SEND = %i[new].freeze
+ # @!method class_new_call?(node)
def_node_matcher :class_new_call?, <<~PATTERN
(send
(const {cbase nil?} :Class) :new
$(const {cbase nil?} _))
PATTERN