Skip to content

Instantly share code, notes, and snippets.

@paneq
Created June 14, 2012 22:45
Show Gist options
  • Save paneq/2933470 to your computer and use it in GitHub Desktop.
Save paneq/2933470 to your computer and use it in GitHub Desktop.
Two ways of detecting operating system in Ruby
RbConfig::CONFIG['host_os']
RUBY_PLATFORM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment