123456789_123456789_123456789_123456789_123456789_

Module: RuboCop::Platform

Relationships & Source Files
Defined in: lib/rubocop/platform.rb

Overview

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

Class Attribute Summary

Class Attribute Details

.windows?Boolean (readonly)

[ GitHub ]

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

def self.windows?
  /cygwin|mswin|mingw|bccwin|wince|emx/.match?(RbConfig::CONFIG['host_os'])
end