Module: RSpec::Support::OS

### Home Classes Methods

### In Files

- lib/rspec/support/ruby_features.rb

### Methods

- #windows?
- #windows_file_path?

### Class/Module Index

Quicksearch

- RSpec
- RSpec::CallerFilter
- RSpec::Support
- RSpec::Support::BlockSignature
- RSpec::Support::Differ
- RSpec::Support::DirectoryMaker
- RSpec::Support::EncodedString
- RSpec::Support::FormattingSupport
- RSpec::Support::FuzzyMatcher
- RSpec::Support::HunkGenerator
- RSpec::Support::InSubProcess
- RSpec::Support::LooseSignatureVerifier
- RSpec::Support::LooseSignatureVerifier::SignatureWithKeywordArgumentsMatcher
- RSpec::Support::MethodSignature
- RSpec::Support::MethodSignatureVerifier
- RSpec::Support::OS
- RSpec::Support::RecursiveConstMethods
- RSpec::Support::Ruby
- RSpec::Support::RubyFeatures
- RSpec::Support::ShellOut
- RSpec::Support::Spec
- RSpec::Support::StdErrSplitter
- RSpec::Support::StrictSignatureVerifier
- RSpec::Support::Version
- RSpec::Support::VersionChecker
- RSpec::Support::Warnings
- RSpec::Support::WarningsPrevention
- RSpec::Support::WithIsolatedStdErr
- Object
- RSpecHelpers

No matching classes.

# 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 9
    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 13
    def windows_file_path?
      ::File::ALT_SEPARATOR == '\'
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.