Class OS
In: lib/os.rb
Parent: Object

a set of friendly files for determining your Ruby runtime treats cygwin as linux also treats IronRuby on mono as...linux

Methods

bits   config   cpu_count   cygwin?   dev_null   freebsd?   iron_ruby?   java?   linux?   mac?   open_file_command   osx?   posix?   report   rss_bytes   ruby_bin   windows?   x?  

Classes and Modules

Class OS::Underlying

External Aliases

windows? -> doze?
java? -> jruby?

Attributes

config  [R] 

Public Class methods

true for linux, false for windows, os x, cygwin

true for linux, os x, cygwin

provides easy way to see the relevant config entries

amount of memory the current process "is using", in RAM (doesn‘t include any swap memory that it may be using, just that in actual RAM) raises ‘unknown’ on jruby currently

true if on windows [and/or jruby] false if on linux or cygwin on windows

[Validate]