From: Devin Mullins Date: 2005-07-16T09:08:44+09:00 Subject: Re: difference? Daniel Brockman wrote: >Interestingly, `is?' works really well for adjectival arguments: > foo.is? Enumerable foo.is? Observable >It's actually not that bad for substantival arguments either: > foo.is? String foo.is? Array > > Indeed, I like the look of that. I imagine, however, he added the _a because he didn't want to crowd the method namespace (I assume the same reason he changed id to object_id). >(Note that `kind_of?' works well in all these cases: > foo.kind_of? Enumerable foo.kind_of? Observable > foo.kind_of? String foo.kind_of? Array) > > I can see that. I guess it's just that I'm not used to thinking of instances as "kinds." Also "kind of" comes off sounding like "approximately," which is kind of weird. I'm obviously too closed-minded for Ruby. :) Devin