From: Rick DeNatale Date: 2007-06-26T03:30:06+09:00 Subject: Re: method_missing for Enumerator On 6/25/07, Yukihiro Matsumoto wrote: > Hi, > > In message "Re: method_missing for Enumerator" > on Mon, 25 Jun 2007 07:04:55 +0900, TRANS writes: > > |What do others think of this for 1.9+? > > |Seems safe enough to me. Am I right in thinking this? Yes, there is > |some potential for uncaught NoMethodErrors, of course, but given the > |nature of this, that should be pretty rare. > > Although I really love the idea like this, this is too dangerous for > core functionality. I'd rather see something in hacking library, such > as Facets or ActiveSupport. > I had the same reaction. There are issues with how you compose uses of method_missing. Note that rspec had to do away with using method_missing because it and activerecord were 'fighting' over it. http://blog.davidchelimsky.net/articles/2007/01/10/rspec-should-use_a_little_less_magic -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/ IPMS/USA Region 12 Coordinator http://ipmsr12.denhaven2.com/ Visit the Project Mercury Wiki Site http://www.mercuryspacecraft.com/