module RuboCop::Platform

This module provides information on the platform that RuboCop is being run on.

Public Class Methods

windows?() click to toggle source
# File lib/rubocop/platform.rb, line 7
def self.windows?
  /cygwin|mswin|mingw|bccwin|wince|emx/.match?(RbConfig::CONFIG['host_os'])
end