Last Updated: February 25, 2016
·
410
· dinks

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