Detect Windows in Ruby
The proper way, so they say:
require 'rbconfig' WINDOZE = Config::CONFIG['host_os'] =~ /mswin|mingw/
Sigh. Makes one yearn for Python. Even 1.5...
Questo browser non è più supportato.
Esegui l'aggiornamento a Microsoft Edge per sfruttare i vantaggi di funzionalità più recenti, aggiornamenti della sicurezza e supporto tecnico.
The proper way, so they say:
require 'rbconfig' WINDOZE = Config::CONFIG['host_os'] =~ /mswin|mingw/
Sigh. Makes one yearn for Python. Even 1.5...