class RuboCop::Cop::Minitest::RefuteInstanceOf
refute_instance_of(Class, object, ‘message’)
refute_instance_of(Class, object)
# good
refute_equal(Class, object.class, ‘message’)
refute_equal(Class, object.class)
# bad
refute(object.instance_of?(Class), ‘message’)
refute(object.instance_of?(Class))
# bad
@example
over ‘refute(object.instance_of?(Class))`.
Enforces the use of `refute_instance_of(Class, object)`
def on_send(node)
def on_send(node) investigate(node, :refute) end