Sha256: 5b52ea34f682c4e95b8dce835e2b3a7271caef95e0bd9a4162cf46e964fcaff5

Contents?: true

Size: 266 Bytes

Versions: 6863

Compression:

Stored size: 266 Bytes

Contents

# frozen_string_literal: true

module RuboCop
  # This module provides information on the platform that RuboCop is being run
  # on.
  module Platform
    def self.windows?
      RbConfig::CONFIG['host_os'] =~ /cygwin|mswin|mingw|bccwin|wince|emx/
    end
  end
end

Version data entries

6,863 entries across 6,840 versions & 28 rubygems

Version Path
rbhint-0.85.1.rc1 lib/rubocop/platform.rb
rubocop-0.85.1 lib/rubocop/platform.rb
rbhint-0.8.5.rc1 lib/rubocop/platform.rb
rubocop-0.85.0 lib/rubocop/platform.rb
rubocop-0.84.0 lib/rubocop/platform.rb
rubocop-0.83.0 lib/rubocop/platform.rb
rubocop-0.82.0 lib/rubocop/platform.rb
talon_one-2.0.0 vendor/bundle/ruby/2.3.0/gems/rubocop-0.66.0/lib/rubocop/platform.rb
talon_one-2.0.0 vendor/bundle/ruby/2.7.0/gems/rubocop-0.66.0/lib/rubocop/platform.rb
rubocop-0.81.0 lib/rubocop/platform.rb
rubocop-0.80.1 lib/rubocop/platform.rb
rubocop-0.80.0 lib/rubocop/platform.rb
grape-extra_validators-1.0.0 vendor/bundle/ruby/2.6.0/gems/rubocop-0.79.0/lib/rubocop/platform.rb
grape-extra_validators-1.0.0 vendor/bundle/ruby/2.4.0/gems/rubocop-0.79.0/lib/rubocop/platform.rb
rubocop-0.79.0 lib/rubocop/platform.rb
rubocop-0.78.0 lib/rubocop/platform.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/rubocop-0.72.0/lib/rubocop/platform.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/rubocop-0.74.0/lib/rubocop/platform.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/rubocop-0.77.0/lib/rubocop/platform.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/rubocop-0.76.0/lib/rubocop/platform.rb