MenTaLguY wrote:
> self will normally refer to self in the lexical scope of the block (#2). 
> class_eval, module_eval, instance_eval, and instance_exec are special 
> exceptions to this rule.
> 
> -mental

I confess I don't like this approach :S (rules with exceptions, doesn't 
fit right..) however thanks for the explanations.
By the way are class_eval, module_eval, instance_eval and instance_exec 
the only exceptions?

Vasco A. Silva

-- 
Posted via http://www.ruby-forum.com/.