From: bpettichord@... Date: 2006-02-02T15:43:18+09:00 Subject: Re: Newbie query regarding ruby best practice > E.g. Is it better to do something like this... > require 'fileutils' > FileUtils.mv(myfile,newpath) > FileUtils.cp(newpath,anotherpath) > FileUtils.rm(newpath) Try this... require 'fileutils' include FileUtils mv(myfile, newpath) cp(newpath,anotherpath) rm(newpath) If you are looking for a more concise way of using a module (which is what FileUtils is), this is a common idiom for doing it. Bret