From: dblack@... Date: 2003-11-19T04:51:45+09:00 Subject: Re: testing argument type and duck typing, newbie question Hi -- On Tue, 18 Nov 2003, gabriele renzi wrote: > il Tue, 18 Nov 2003 13:34:32 +0100, Raphael Bauduin > ha scritto:: > > >Hi, > > > >I have a method taking one argument that can be an integer or a string. > >How do I test the argument to know if it's a string or an integer? All > >the duck typing things I've read make me wonder what's the best way > >to determine if the argument is an integer or a string..... > > you don't want duck typing :) Then he'd better avoid Ruby :-) David -- David Alan Black home: dblack@wobblini.net # New email address work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav