module Platform::OS::OSX::SystemProfiler
Public Instance Methods
major_system_version()
click to toggle source
# File lib/Platform/OS/OSX/SystemProfiler.rb, line 21 def major_system_version system_version.split('.').first.to_i end
minor_system_version()
click to toggle source
# File lib/Platform/OS/OSX/SystemProfiler.rb, line 25 def minor_system_version system_version.split('.').second.to_i end
system_version()
click to toggle source
# File lib/Platform/OS/OSX/SystemProfiler.rb, line 17 def system_version `system_profiler SPSoftwareDataType`.force_encoding('UTF-8').grep(/System Version/).split(': ').second.split.fourth end
tiny_system_version()
click to toggle source
# File lib/Platform/OS/OSX/SystemProfiler.rb, line 29 def tiny_system_version system_version.split('.').third.to_i end