Class: System
- Inherits:
-
Object
- Object
- System
- Defined in:
- lib/system.rb,
lib/system/os.rb,
lib/system/cpu.rb,
lib/system/ruby.rb,
lib/system/backwards_compatibility.rb
Overview
System is a cross-platform and cross-implementation interface to gather system information from the current host.
System offers a simple to use interface to gather an array of information including; OS, CPU, Filesystem, etc..
Defined Under Namespace
Modules: OS, Ruby Classes: CPU
Class Method Summary collapse
-
.java? ⇒ TrueClass, FalseClass
deprecated
Deprecated.
0.2.0
-
.jruby? ⇒ TrueClass, FalseClass
deprecated
Deprecated.
0.2.0
-
.os ⇒ Symbol
(also: operating_system)
deprecated
Deprecated.
0.2.0
Class Method Details
.java? ⇒ TrueClass, FalseClass
Deprecated.
0.2.0
Check if Ruby is using Java.
Delegates to System::Ruby.java? for backwards compatibility with 0.1.0.
25 26 27 |
# File 'lib/system/backwards_compatibility.rb', line 25 def java? System::Ruby.java? end |