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? RbConfig::CONFIG['host_os'] =~ /cygwin|mswin|mingw|bccwin|wince|emx/ end