Thanks so much. Very basic stuff.
I think I'll change my name to "Rusty".
:_)
Dudley Flanders wrote:
On Oct 11, 2007, at 6:13 PM, Eric Armstrong wrote:
I /thought/ that was a core package, but when the mv
command wasn't recognized, I thought I needed to require
it in. But that failed with "no file found".
It's in the standard library (so it's included in the Ruby distribution)
but you still need to require it:
require 'fileutils'
Reading the file, I can see that it's a module.
So apparently I need to include that module, or some
such. (I've been away a while, and my chops are /very/
rusty...)
Yep, once you've loaded it with require, you can access the methods in
the module like this:
FileUtils.mv('here', 'there')
Or, if you don't want to prefix every usage with 'FileUtils', you can:
include FileUtils
and then call the methods directly.
:dudley
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
--
Eric Armstrong, Document Systems Architect, Sun Microsystems
http://blogs.sun.com/coolstuff
http://www.artima.com/weblogs/index.jsp?blogger=cooltools
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email