method

in_path?

Importance_0
v2_2_9 - Show latest stable - 0 notes - Class: TestCase
in_path?(executable) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/rubygems/test_case.rb, line 470
  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
Register or log in to add new notes.