From: Love U Ruby Date: 2013-02-23T20:43:06+09:00 Subject: Re: Regarding the instantiation relations in Ruby? Edoardo Rossi wrote in post #1098566: > On Sat, Feb 23, 2013 at 11:49 AM, Love U Ruby > wrote: >> Posted via http://www.ruby-forum.com/. >> > > Hi 'Love U Ruby'. > > There is a method that seems all you need in this case: > > = .instance_of? > > (from ruby core) > === Implementation from Object > ------------------------------------------------------------------------------ > obj.instance_of?(class) -> true or false > > ------------------------------------------------------------------------------ > > Returns true if obj is an instance of the given class. See also > Object#kind_of?. I wanted to ask that - How BasicObject can also be a (kind) of Module, Object, BasicObject)? and How Object can also be a (kind) of Module, Object, BasicObject)? -- Posted via http://www.ruby-forum.com/.