From: David Alan Black Date: 2001-12-13T22:31:25+09:00 Subject: [ruby-talk:28411] Re: The maddening output of Arrays Hi -- On Thu, 13 Dec 2001, Hal E. Fulton wrote: > ----- Original Message ----- > From: Issac Trotts > To: ruby-talk ML > Sent: Thursday, December 13, 2001 1:31 AM > Subject: [ruby-talk:28395] Re: The maddening output of Arrays > > > > Wow, I didn't know Ruby had been around that long. > > I only heard about it this year. > > It was a secret of the Japanese for a while. > > I first heard of it in 1999. At that time, ruby-talk was > fewer than 20 messages a day if I remember right, > and there were not many American-sounding names > on the list (except Dave Thomas and Andy Hunt). > And actually Dave.kind_of? British #=> true Surely British is a module, not a class :-) But hey, let's do this the Ruby Way: dave.ancestors.include? British # => true dave.respond_to? :lorry # => true dave.respond_to? :crisps # => true # Hmmm, so far so good. dave.respond_to? :football # => true dave.football == david.soccer # => true :-) David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav