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...
Tätä selainta ei enää tueta.
Päivitä Microsoft Edgeen, jotta voit hyödyntää uusimpia ominaisuuksia, suojauspäivityksiä ja teknistä tukea.
The proper way, so they say:
require 'rbconfig' WINDOZE = Config::CONFIG['host_os'] =~ /mswin|mingw/
Sigh. Makes one yearn for Python. Even 1.5...