From: David Garamond Date: 2004-12-25T13:33:37+09:00 Subject: Re: non-OO realpath, basename, dirname? David Garamond wrote: > Is there a better way than below? (Note: I don't want to implement > realpath et al myself :-). > [snip] > Pathname.new(p).realpath > Pathname.new(p).basename > Pathname.new(p).dirname Sorry, that should've been: Pathname.new(p).realpath.to_s Pathname.new(p).basename.to_s Pathname.new(p).dirname.to_s Regards, dave