From: Matt Bleh Date: 2009-12-11T08:26:03+09:00 Subject: Re: "private" modules Oh, anonymous module, good idea. Anyway, since I don't actually want to include stuff into Vector, I changed it to this: module A @backend = Module.new do def self.bleh puts 1 end end def A.backend @backend end end module A class Vector def initialize puts A.backend.class end end end Since GSL.backend is a module method, when I do "include A" at the top-level, neither @backend nor A.backend are visible. It would be cool to have something like "private" for modules, so that modules defined after that keyword would only be accesible from the parent module. In any case, I'm open to any other idea better than mine. Matt -- Posted via http://www.ruby-forum.com/.