Subject: Re: The simpelest of module function scoping...
From: Joel VanderWerf <vjoel path.berkeley.edu>
Date: Thu, 9 Jul 2009 15:35:05 +0900
References: 341016341017
In-reply-to: 341017
Tom wrote:
> And if I still keep the original def t(x), how can it be used?
You can "mix" it into a class:
class C
include T
def foo; t(...); end
end
--
vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407