Sha256: 7aca5bfb1f1b57f168c9d2e964b80df11596624d9fdb6e6dcaf2092671b6f116

Contents?: true

Size: 250 Bytes

Versions: 2

Compression:

Stored size: 250 Bytes

Contents

require "pathname"

module Ykutils
  class OSUtil
    @os = nil

    def self.runtime
      @os ||= if Pathname.pwd.to_s =~ %r{^/cygdrive}
                :CYGWIN
              else
                :ELSE
              end
      @os
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ykutils-0.1.10 lib/ykutils/osutil.rb
ykutils-0.1.8 lib/ykutils/osutil.rb