From: MenTaLguY Date: 2007-06-22T05:38:20+09:00 Subject: Re: How do I intercept creation of fundatmental types, eg. [] On Fri, 22 Jun 2007 05:28:24 +0900, "Durant S." wrote: > For example, I can catch this: > > b = Array.new > > but I cannot catch this: > > x = [3,4,5] > > It seems like I should be able to do it with the awesome power of ruby > :), but I can't figure out how. It isn't possible without modifying the interpreter; in the latter case, the array is created directly by the interpreter, rather than via a method call. -mental