[Win32utils-devel] Re: namespace for File, Process?

win32utils-devel at rubyforge.org win32utils-devel at rubyforge.org
Sun Mar 21 13:04:31 EST 2004

> No, you misunderstand.  I'm not suggesting that we modify core Ruby.  Just
> that we extend the File and Process/Kernel class.  e.g. if I do class
> def foo; end; end; I haven't replaced the File class just extended it.
> I just mean dropping the Win32 module/namespace in the case of File and
> Process (or any class that we extend).

Oh, I see ! So that I can simply do:

require "win32utils"

p File.hidden?("hideme.txt") #=> true

Correct ?

That is a great idea ...

-- Shashank

More information about the win32utils-devel mailing list