From: "Hal E. Fulton" Date: 2000-09-26T09:55:14+09:00 Subject: [ruby-talk:5118] Re: Types and === ----- Original Message ----- From: Yasushi Shoji To: ruby-talk ML Sent: Monday, September 25, 2000 5:23 PM Subject: [ruby-talk:5117] Re: Types and === > def classify4(arg) > case arg > when String > print " arg is a string\n" > when Array > print " arg is an array\n" > when Hash > print " arg is a hash\n" > else > print " arg is unknown\n" > end > end Ahhhh. I now perceive the Ruby Way. So I should not have been finding the type at all, but letting the language do the work for me. Still, it bothers me a little that x==y does not always imply x===y. But I will just have to get used to that... Actually I have trouble remembering what === means -- whether to say x === y or y === x, which are of course not the same. Thanks much, Hal