From: "I. E. Smith-Heisters" Date: 2008-06-18T06:34:00+09:00 Subject: Re: detect if required or executed? On Jun 17, 11:07 am, "ara.t.howard" wrote: > On Jun 17, 2008, at 11:59 AM, I. E. Smith-Heisters wrote: > > > Is anyone aware of a way to detect if a file has been required from > > another ruby process, or is being executed from the commandline? I've > > been doing this hack: > > executed = __FILE__ == $0 > required = not executed > > a @http://codeforpeople.com/ > -- > we can deny everything, except that we have the possibility of being   > better. simply reflect on that. > h.h. the 14th dalai lama clever, thanks!