>>>>> "E" == Eugene Scripnik <Eugene.Scripnik / itgrp.net> writes:

E> So, both module and class accept defining modules and classes inside
E> them, but Class#constants and Module#constants behave in different
E> way. That was second surprise.

 When you call Class#constants (or Module#constants) ruby look in the
 class and the super classes. a module don't have a superclass, this is why
 ruby give the constant only in this module


Guy Decoux