From: Stephane Wirtel Date: 2006-11-06T01:30:13+09:00 Subject: Re: how to know if i am in a module or in the main script ? > Yes, that is a very common idiom used by many Ruby programmers to > determine if the code is being included or 'run' by itself. Good job > figuring it out. :) Thanks