Module: RuboCop::Platform

Defined in:
lib/rubocop/platform.rb

Overview

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

Class Method Summary collapse

Class Method Details

.windows?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/rubocop/platform.rb', line 7

def self.windows?
  RUBY_PLATFORM =~ /cygwin|mswin|mingw|bccwin|wince|emx/
end