Ruby

Ruby

Made by DeepSource

Use of is_a is preferred RB-ST1016

Anti-pattern
Minor
Autofix

is_a? method should be used to check the type.

Bad practice

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

Recommended

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