From: Arlen Cuss Date: 2008-03-08T09:45:19+09:00 Subject: Re: instance_eval and class_eval - names got mixed up? ------=_Part_39094_10936796.1204937125885 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, On Sat, Mar 8, 2008 at 8:09 AM, Bharat Ruparel wrote: > Thanks gentlemen for your responses. It still requires mental gyrations > for me. I honestly think that this one got away from Matz. Perhaps just try to remember that only classes have class_eval, and only instances (i.e. everything) has instance_eval. Hence, since all objects could have singleton methods, instance_eval must add methods to the singleton class, whereas what you put in a `class_eval' block is similar to when you use the `class' keyword itself. Arlen ------=_Part_39094_10936796.1204937125885--