Sha256: dcc84d149a2da8ffb46bf596c04d155d7fb4f42ccd52a95e27e8c4f7330804d2
Contents?: true
Size: 648 Bytes
Versions: 25
Compression:
Stored size: 648 Bytes
Contents
module Cxxproject module Utils # Simple helper query the operating system we are running in module OS # Is it windows def OS.windows? (RUBY_PLATFORM =~ /cygwin|mswin|mingw|bccwin|wince|emx/) != nil end # Is it osx def OS.mac? (RUBY_PLATFORM =~ /darwin/) != nil end # Is it kind of unix def OS.unix? !OS.windows? end # Is it linux def OS.linux? OS.unix? and not OS.mac? end end def self.deep_copy(x) Marshal.load(Marshal.dump(x)) end def self.old_ruby? RUBY_VERSION[0..2] == "1.8" end end end
Version data entries
25 entries across 25 versions & 1 rubygems