From: Artur Merke Date: 2006-10-21T21:45:15+09:00 Subject: Re: instance_eval && class_eval Xavier Noria schrieb: > On Oct 21, 2006, at 12:55 PM, Artur Merke wrote: > > define_method defines an instance method both in the instance_eval > and class_eval sections of your code. To be able to call > > D.method > > method needs to be a class instance method of D (i.e. a method of the > singleton class of D herself). yes (see also my solution I provided at the end of my msg), but this was not the question, the question was (and still is), why(!) def a end and define_method(:a) do end behave differently in instance_eval (and not in class_eval and anywhere else) ... AHA Artur