Ruby Tutorials: difference between kind_of? is_a? and instance_of?

Опубликовано: 27 Октябрь 2024
на канале: GangesLearning
615
9

In ruby we often need to check whether a given object belongs to a certain class or not. It has three methods kind_of? is_a? and instance_of? to deal with such situations. In this video we will understand the difference between their usage.