Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: e4d60ca39e
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (13 sloc) 0.267 kb
module OsHelper
require 'rbconfig'
@os = RbConfig::CONFIG['target_os']
def OsHelper.is_linux?
@os.downcase.include?('linux')
end
def OsHelper.is_windows?
@os.downcase.include?('mswin')
end
def OsHelper.is_osx?
@os.downcase.include?('darwin')
end
end
Jump to Line
Something went wrong with that request. Please try again.