class OS
Public Class Methods
linux?()
click to toggle source
# File lib/fir/patches/os_patch.rb, line 18 def linux? OS.unix? && !OS.mac? end
mac?()
click to toggle source
# File lib/fir/patches/os_patch.rb, line 10 def mac? !(/darwin/ =~ RUBY_PLATFORM).nil? end
set_locale()
click to toggle source
# File lib/fir/patches/os_patch.rb, line 22 def set_locale system 'export LC_ALL=en_US.UTF-8' system 'export LC_CTYPE=en_US.UTF-8' system 'export LANG=en_US.UTF-8' end
unix?()
click to toggle source
# File lib/fir/patches/os_patch.rb, line 14 def unix? !OS.windows? end
windows?()
click to toggle source
# File lib/fir/patches/os_patch.rb, line 6 def windows? !(/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM).nil? end