From: "Hal E. Fulton" Date: 2003-08-22T04:26:46+09:00 Subject: Re: const_missing ----- Original Message ----- From: "Joel VanderWerf" To: "ruby-talk ML" Sent: Thursday, August 21, 2003 1:58 PM Subject: Re: const_missing > I guess #const_missing gets sent to the class, not to the instance, > since constants belong to the class. So make it a class method: > > irb(main):001:0> def Object::const_missing(c); puts "missing: #{c}"; end > => nil > irb(main):002:0> AAA > missing: AAA > => nil Right, thanks. I also forgot the parameter. Hal -- Hal Fulton hal9000@hypermetrics.com