Sha256: a2650395f6e28127641ab6c7ef2d9b1774eec223331f8ed9f65abd9f31b8689b

Contents?: true

Size: 262 Bytes

Versions: 1

Compression:

Stored size: 262 Bytes

Contents

require 'pathname'

module Ykutils
  class OSUtil
    @@os = nil

    def OSUtil.runtime
      unless @@os
        if Pathname.pwd.to_s =~ /^\/cygdrive/
          @@os=:CYGWIN
        else
          @@os=:ELSE
        end
      end
      @@os
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ykutils-0.1.0 lib/ykutils/osutil.rb