ts wrote:

>  With this version of ruby
> 
> uln% ruby -v
> ruby 1.9.0 (2005-03-14) [x86_64-linux]
> uln% 
> 
>  The result is
> 
> 0 cats, 0 dogs, 0 animals
> a new dog
> a new dog
> 0 cats, 2 dogs, 0 animals
> a new cat
> a new cat
> a new cat
> 3 cats, 2 dogs, 0 animals

So the behavior has been changed to lookup by surrounding module/class 
on method definition time?