Project

General

Profile

Actions

Feature #6792

closed

request for easier system properties access

Added by rogerdpack (Roger Pack) almost 12 years ago. Updated over 6 years ago.

Status:
Feedback
Assignee:
-
Target version:
-
[ruby-core:46773]

Description

Before I forget about it, it would be nice for Ruby to have some way to access certain system properties more easily:
require 'os'

OS.bits
=> 32
OS.windows?
=> false
OS.rss_bytes
=> 123456
OS.cpu_count
=> 5

So this is a request for a helper class for such.
Ex: https://github.com/rdp/os

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0