module RSpec::Support::OS

@api private

Provides query methods for different OS or OS features.

Public Instance Methods

windows?() click to toggle source
# File lib/rspec/support/ruby_features.rb, line 12
def windows?
  !!(RbConfig::CONFIG['host_os'] =~ /cygwin|mswin|mingw|bccwin|wince|emx/)
end
windows_file_path?() click to toggle source
# File lib/rspec/support/ruby_features.rb, line 16
def windows_file_path?
  ::File::ALT_SEPARATOR == '\'
end