SEPARATOR doesn't work

Hi,
I’m using ruby-win32 1.6 and I’m trying to get the Path-separator ( eg. /
or \ ) to wirte protable programs

However

File.SEPARATOR
SEPARATOR
$SEPARATOR
Dir.SEPARATOR

all return nil. What’s wrong

irb(main):001:0> File.SEPARATOR
NameError: undefined method `SEPARATOR’ for File:Class
from (irb):1
irb(main):002:0> File::SEPARATOR
=> “/”

···

Robert.Koepferl@de.gi-de.com wrote:

Hi,
I’m using ruby-win32 1.6 and I’m trying to get the Path-separator ( eg. /
or \ ) to wirte protable programs

However

File.SEPARATOR
SEPARATOR
$SEPARATOR
Dir.SEPARATOR

all return nil. What’s wrong

File.join(elt, elt, elt) is a handy way of achieving this
(where elt is a path element).

Gavin

···

On Thursday, October 9, 2003, 1:56:56 AM, Robert wrote:

Hi,
I’m using ruby-win32 1.6 and I’m trying to get the Path-separator ( eg. /
or \ ) to wirte protable programs

However

File.SEPARATOR
SEPARATOR
$SEPARATOR
Dir.SEPARATOR

all return nil. What’s wrong