From: Thien Vuong Date: 2003-11-18T15:02:16+09:00 Subject: Re: Strong Typing (Re: Managing metadata about attribute types) KUSUNOSE Toru wrote: >> > > > Sometimes, the latter is better. > Definitely. I could see much good use of it. Just only wanted to point out that it is not always one way or another. > For example, think Tempfile class. An instance of Tempfile > class responds to every methods an instace of the File class has, > so surely its type is File. But tmpfile.is_a? File is false. > Thanks for pointing it out. I wonder if I have some code needs to check if it has a file behaviour or not (say the stream behavior plus about 10 differrent methods), how could I do it concisely? I could structure the application such that it is not necessary, but it is not always possible nor desirable to do so. >