From: "David A. Black" Date: 2008-08-29T21:54:51+09:00 Subject: Re: Parameter Type Checking in methods.Q? Hi -- On Fri, 29 Aug 2008, John Pritchard-williams wrote: >> I hate to sound curmudgeonly but please check out the probably >> (literally) 2500 posts about this and related questions from the past. >> It's been discussed and explained mind-numbingly many times. >> >> >> David > > Apologies. I did have a check on the forum beforehand but didn't find a > match - perhaps I need to learn how to search properly... :-) > > http://www.ruby-forum.com/forum/4?filter=parameter+type+method > http://www.ruby-forum.com/forum/4?filter=parameter+type+check > http://www.ruby-forum.com/forum/4?filter=parameter+type > http://www.ruby-forum.com/forum/4?filter=parameter+type+sugar > > (or else there is no simple answer I guess...) Try googling for: "type checking" ruby (even though 99% of the time it's really class/module ancestry checking, it gets raised as type checking so that's a better bet for searching). David -- Rails training from David A. Black and Ruby Power and Light: Intro to Ruby on Rails January 12-15 Fort Lauderdale, FL Advancing with Rails January 19-22 Fort Lauderdale, FL * * Co-taught with Patrick Ewing! See http://www.rubypal.com for details and updates!