OS-Name
A miniscule Ruby gem for checking host OS.
Usage
require 'os-name'
OS.to_s
OS.to_sym
OS.linux?
OS.osx?
Installation
Add this line to your application's Gemfile:
gem 'os-name'
And then execute:
$ bundle
Or install it yourself as:
$ gem install os-name