Paul Brannan wrote: > On Fri, Mar 05, 2004 at 12:25:42PM +0900, David Garamond wrote: > >>Since Ruby forbid _Foo, what is the convention for internal class/method >>name? Currently I use Foo_, but I wonder what other people use. > > What do you mean by "internal"? A class that shouldn't be accessed by > classes other than the one you are writing (that is, it is an > implementation detail)? Yes. In my case, it's several different implementation per platform. module Foo_Win32_ def bar; ...; end end module Foo_Linux_ def bar; ...; end end module Foo_Bsd_ def bar; ...; end end class Foo case RUBY_PLATFORM when /win/ then include Foo_Win32_ when /linux/ then include Foo_Linux_ when /bsd/ then include Foo_Bsd_ end def baz; ...; end def quux; ...; end end -- dave