Module: Redmine::Platform

Defined in:
lib/redmine/platform.rb

Class Method Summary collapse

Class Method Details

.mswin?Boolean

Returns:

  • (Boolean)


21
22
23
24
# File 'lib/redmine/platform.rb', line 21

def mswin?
  (RUBY_PLATFORM =~ /(:?mswin|mingw)/) ||
     (RUBY_PLATFORM == 'java' && (ENV['OS'] || ENV['os']) =~ /windows/i)
end