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?
  RUBY_PLATFORM =~ /cygwin|mswin|mingw|bccwin|wince|emx/
end