Sha256: eb497c3f99652c04ae48a845ac2ef9f141fb817d232d1e2761b888dacc7c8851
Contents?: true
Size: 361 Bytes
Versions: 11
Compression:
Stored size: 361 Bytes
Contents
module Rake::Funnel::Support class Which class << self def which(executable) return executable if File.file?(executable) ENV['PATH'] .split(File::PATH_SEPARATOR) .map { |path| File.join(path, executable) } .select { |path| File.file?(path) } .first end end end end
Version data entries
11 entries across 11 versions & 1 rubygems