« Return to Thread: The simpelest of module function scoping...

Re: The simpelest of module function scoping...

by Joel VanderWerf :: Rate this Message:

Reply to Author | View in Thread

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

 « Return to Thread: The simpelest of module function scoping...