From: apeiros Date: 2008-05-13T07:07:13+09:00 Subject: Re: lambda, ->, haskell, and so on Am 12.05.2008 um 16:40 schrieb Eric Mahurin: > There should probably be one more column in the above: "self"- > closure. The block for define_method isn't a normal closure. > "self" and @ vars refer to the object where the method is placed, > not the closure context. This is similar to "instance_eval" and > "class_eval". "instance_eval" and "class_eval" would also be useful > in this table. I know there is a very subtle difference between the > way the block is treated for instance_eval and class_eval, but I > forgot. instance_eval creates class methods when using def foo; end within the block, class_eval creates instance methods. There might be additional differences. Regards Stefan