Gavin Sinclair wrote:
> On Monday, February 10, 2003, 5:47:46 AM, Jason wrote:
>>Daniel Carrera wrote:
>>>How can "mod.rb" find its own current directory?
>>
> 
>>f = __FILE__
>>len =  -f.length
> 
> 
>>my_dir = File::expand_path(f)[0...len]
> 
> 
> Better:
> 
>   my_dir = File.dirname(__FILE__)

Perhaps instead of "There's More Than One Way To Do It", Ruby should 
adopt as its motto "There's Always A Better Way To Do It".

:)

-- 
Jason Voegele
"There is an essential core at the center of each man and woman that
remains unaltered no matter how life's externals may be transformed
or recombined. But it's smaller than we think."
     -- Gene Wolfe, The Book of the Long Sun