Method: LinuxStat::Kernel.version

Defined in:
lib/linux_stat/kernel.rb

.versionObject Also known as: release

Returns the Linux Kernel version.

If the information isn’t available, it will return a frozen empty string.

The output is also cached (memoized) ; as changing the value in runtime is unexpected.



10
11
12
13
# File 'lib/linux_stat/kernel.rb', line 10

def version
	return ''.freeze if string.empty?
	@@version ||= splitted[2]
end