Ruby logoRuby/
RB-ST1016

Use of `is_a` is preferredRB-ST1016

Minor severityMinor
Anti-pattern categoryAnti-pattern

is_a? method should be used to check the type.

Bad practice

var.kind_of?(Date)
var.kind_of?(Integer)
var.is_a?(Date)
var.is_a?(Integer)