From: Pistos Christou Date: 2006-03-28T02:16:31+09:00 Subject: Re: Areal noob question Jim Weirich wrote: >> def foo( o ) >> ... >> end > > Can't help much with the protected issue, but > > def foo(some_object) > end > > Tells you what foo expects as an argument. We must next ask: Do we care what the class/type/race/gender/religion/political-inclination of some_object is? def foo( some_object ) # All I care about is... if some_object.respond_to? do_some_job some_object.do_some_job end end David Ishmael: It looks like you might still have some grime stuck to your clothes from previous languages. :) I've been doing Ruby now for about 4 years, coming from a Java background, and type declarations like you pointed out are one thing I just don't miss, nor found the need for in Ruby... -- Posted via http://www.ruby-forum.com/.