📜  is_a 和 kind_of ruby 代码示例之间的区别

📅  最后修改于: 2022-03-11 15:04:46.156000             🧑  作者: Mango

代码示例1
"hello".is_a? Object and "hello".kind_of? Object return true because "hello" is a String and String is a subclass of Object.
However "hello".instance_of? Object returns false.