Class: CavalerieWeb::OSHelper

Inherits:
Object
  • Object
show all
Defined in:
lib/cavalerie_web/helpers/os_helper.rb

Class Method Summary collapse

Class Method Details

.is_windows?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/cavalerie_web/helpers/os_helper.rb', line 5

def self.is_windows?
  RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/
end