From: Sammy Larbi Date: 2007-07-19T21:58:16+09:00 Subject: Re: Are we cool? method_missing in enumerator Robert Dober wrote, On 7/18/2007 3:48 PM: > On 7/18/07, Trans wrote: >> >> >> On Jul 18, 8:01 am, Sammy Larbi wrote: >> > I might test that it can still throw missing method exception if the >> > called method isn't supposed to be doing what you're making it do (ie, >> > perhaps it was a typo) > This being true, where exactly is the difference between > > enum.map{ |e| e.typo } > and > enum.map(:typo) > > > Robert > Good point. I guess I was thinking of something unrelated to the map call: Where you've got the magic behavior working fine, but somewhere later on you have a method typo, but that gets caught by method_missing and throws some different strange error instead of method missing. Sam