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
- .windows? ⇒ Boolean readonly
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