Feature #6792

request for easier system properties access

Added by Roger Pack over 1 year ago. Updated over 1 year ago.

[ruby-core:46773]
Status:Feedback
Priority:Normal
Assignee:-
Category:-
Target version:next minor

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.rssbytes
=> 123456
OS.cpu
count
=> 5

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

History

#1 Updated by Yui NARUSE over 1 year ago

  • Status changed from Open to Feedback

Write more concrete proposal.

#2 Updated by Yusuke Endoh over 1 year ago

  • Target version set to next minor

Also available in: Atom PDF