method
in_path?
v2_5_5 -
Show latest stable
- Class:
Gem::TestCase
in_path?(executable)public
No documentation available.
# File lib/rubygems/test_case.rb, line 521
def in_path? executable # :nodoc:
return true if %\A([A-Z]:|/)% =~ executable and File.exist? executable
ENV['PATH'].split(File::PATH_SEPARATOR).any? do |directory|
File.exist? File.join directory, executable
end
end