Class: File

Inherits:
Object
  • Object
show all
Defined in:
lib/selenium-grid/lib/ruby/file_extensions.rb

Class Method Summary collapse

Class Method Details

.native_path(path) ⇒ Object



3
4
5
6
7
# File 'lib/selenium-grid/lib/ruby/file_extensions.rb', line 3

def self.native_path(path)
  expanded_path = File.expand_path(path)
  expanded_path.gsub!('/', '\\') if PLATFORM['win32']
  expanded_path
end