rbconfig
Well it seems like if you want to get all the information about your Operating System and the Ruby running on that machine, then use rbconfig
require 'rbconfig'
RbConfig::CONFIG
RbConfig::CONFIG['host_os'] # darwin13.3.0
Written by Dinesh Vasudevan
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#