lib/rake/helpers/file.rb in rake-delphi-0.0.26 vs lib/rake/helpers/file.rb in rake-delphi-0.0.27
- old
+ new
@@ -8,10 +8,10 @@
def self.separator
return @@separator if @@separator
# Return `backlash` for Cygwin and Windows (ALT_SEPARATOR)
# otherwise - system separator
- return @@separator = cygwin? ? '\\' : (ALT_SEPARATOR ? ALT_SEPARATOR : SEPARATOR)
+ return @@separator = cygwin? ? '\\' : (ALT_SEPARATOR || SEPARATOR)
end
def self.cygpath(path, flag = nil)
flag ||= '-w'
# convert to Windows path