From: James Britt Date: 2006-05-12T08:47:56+09:00 Subject: Re: Newb question - object type tests? Adam Bloom wrote: > Hello all, > > I feel like I definitely should know this, but how do you test the type > of an object? For example: > > item = ["hello"] > item.array? > >>true > > item = "hello" > item.array? > >>false > > > extending that, how do I test the type of a class that I made? class Foo # some code .. end f = Foo.new f.is_a? Foo -- James Britt "People want simple stories."