Ruby kind_of? vs instance_of? vs is_a?: Differences and When to Use Them | CodeTrail