vendor/bundle/ruby/1.8/gems/io-reactor-1.0.4/rake/helpers.rb
### Return the fully-qualified path to the specified +program+ in the PATH.
Return the fully-qualified path to the specified +program+ in the PATH.
Return the fully - qualified path to the specified + program + in the PATH .
def which( program )
	ENV['PATH'].split(/:/).
		collect {|dir| Pathname.new(dir) + program }.
		find {|path| path.exist? && path.executable? }
end
def which ( program ) ENV [ 'PATH' ] . split ( / : / ) . collect { | dir | Pathname . new ( dir ) + program } . find { | path | path . exist? && path . executable? } end
Return the fully-qualified path to the specified +program+ in the PATH.
Return the fully - qualified path to the specified + program + in the PATH .
program