module Fancybox2::Utils::Os
Public Instance Methods
identifier()
click to toggle source
# File lib/fancybox2/utils/os.rb, line 6 def identifier return @identifier if @identifier host_os = RbConfig::CONFIG['host_os'] @identifier = case host_os when /aix(.+)$/ 'aix' when /darwin(.+)$/ 'darwin' when /linux/ 'linux' when /freebsd(.+)$/ 'freebsd' when /openbsd(.+)$/ 'openbsd' when /netbsd(.*)$/ 'netbsd' when /dragonfly(.*)$/ 'dragonflybsd' when /solaris2/ 'solaris2' when /mswin|mingw32|windows/ # No Windows platform exists that was not based on the Windows_NT kernel, # so 'windows' refers to all platforms built upon the Windows_NT kernel and # have access to win32 or win64 subsystems. 'windows' else host_os end end