class Sys::Proc::Helper::System
System
helper
Public Instance Methods
identify()
click to toggle source
Identify operating system
@return [Symbol]
# File lib/sys/proc/helper/system.rb, line 14 def identify (RbConfig::CONFIG['host_os'] || 'generic') .tr('-', '_') .gsub(/[0-9]+(\.[0-9]+)*$/, '') .to_sym end