Method: Selenium::WebDriver::Platform.cygwin_path

Defined in:
lib/selenium/webdriver/common/platform.rb

.cygwin_path(path, opts = {}) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



95
96
97
98
99
100
# File 'lib/selenium/webdriver/common/platform.rb', line 95

def cygwin_path(path, opts = {})
  flags = []
  opts.each { |k,v| flags << "--#{k}" if v }

  `cygpath #{flags.join ' '} "#{path}"`.strip
end