Module: Uname

Defined in:
lib/uname.rb

Overview

Uname module Interface to ‘uname` [or `ver` on Windows]. Copyright © 2011 Sam Saint-Pettersen.

Released under the MIT/X11 License.

Class Method Summary collapse

Class Method Details

.shortObject



17
18
19
# File 'lib/uname.rb', line 17

def self.short()
  self.invokeUname("-s")
end

.sysnameObject

Equivalent to Uname.short, for compatibility with ‘sys/uname`, which this module was written to replace for compatibility with IronRuby - no C code here ;).



13
14
15
# File 'lib/uname.rb', line 13

def self.sysname()
  self.short
end