From: James Byrne Date: 2006-02-22T23:56:11+09:00 Subject: Re: A small refractory problem Please forgive the missing _ in the first example. The code should be: > > def move(sourcedir,globspec,targetdir,suf=nil) > > if sourcedir.kind_of?(self.class) then sourcedir = sourcedir.path end > sourcedir = File.expand_path(sourcedir.to_s) > if !self.validpath?(sourcedir) then > raise ArgumentError, "Source directory invalid", caller > end > > if targetdir.kind_of?(self.class) then targetdir = targetdir.path end > targetdir = File.expand_path(targetdir.to_s) > if !self.validpath?(targetdir) then > raise ArgumentError, "Target directory invalid", caller > end > -- Posted via http://www.ruby-forum.com/.