From: Jim Freeze Date: 2006-10-31T05:58:14+09:00 Subject: Re: __FILE__ for requiring file ------=_Part_84653_29364537.1162241890420 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Just make sure that you won't have any file names with a ':' in them =) Sure: __REQUIRING_FILE__ = caller.grep(/^(.*):\d+(?::in)?$/)[0] -- Jim Freeze ------=_Part_84653_29364537.1162241890420--