lib/rake/funnel/support/which.rb in rake-funnel-0.3.2.pre vs lib/rake/funnel/support/which.rb in rake-funnel-0.4.0.pre

- old
+ new

@@ -1,15 +1,19 @@ -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 +module Rake + module Funnel + module 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 + end +end