From: Mauricio Fernandez Date: 2006-08-25T03:26:35+09:00 Subject: Re: Redefining class On Fri, Aug 25, 2006 at 01:52:43AM +0900, Henry Savr wrote: > Problems start here: > module X1 > class Time > ... > end > class Is > ... > end > class Money > ... > end > end > ======================== > I think, that Ruby considers class Time inside the module as a new > class, which belongs module X1. So I have to inform him/her :-) , that > it is the same class, as the original one. And I don't know how to do > that. class X; end module Y; class ::X; def foo; "X#foo"; end end end X.new.foo # => "X#foo" -- Mauricio Fernandez - http://eigenclass.org - singular Ruby