Sha256: ef1676e4ae6778483a4b61aba8776eb04a487f708babcabceda463e237409cf9
Contents?: true
Size: 531 Bytes
Versions: 3
Compression:
Stored size: 531 Bytes
Contents
# encoding: utf-8 module Cliver # The `which` command we love on many posix-systems needs analogues on other # systems. The Which module congitionally includes the correct implementation # into itself, so you can include it into something else. module Which case RbConfig::CONFIG['host_os'] when /mswin|msys|mingw|cygwin|bccwin|wince|emc/ require_relative 'which/windows' include Cliver::Which::Windows else require_relative 'which/posix' include Cliver::Which::Posix end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cliver-0.1.3 | lib/cliver/which.rb |
cliver-0.1.2 | lib/cliver/which.rb |
cliver-0.1.1 | lib/cliver/which.rb |