module RuboCop::Platform
This module provides information on the platform that RuboCop
is being run on.
Public Class Methods
Source
# File lib/rubocop/platform.rb, line 7 def self.windows? /cygwin|mswin|mingw|bccwin|wince|emx/.match?(RbConfig::CONFIG['host_os']) end