vendor/gems/BlueCloth-1.0.0/utils.rb
### Search for the program specified by the given <tt>progname</tt> in the
### user's <tt>PATH</tt>, and return the full path to it, or <tt>nil</tt> if
### no such program is in the path.
Search for the program specified by the given progname in the
user's PATH, and return the full path to it, or nil if
no such program is in the path.
Search for the program specified by the given progname in the user ' s PATH and return the full path to it or nil if no such program is in the path .
def findProgram( progname )
		ENV['PATH'].split(File::PATH_SEPARATOR).each {|d|
			file = File.join( d, progname )
			return file if File.executable?( file )
		}
		return nil
	end
def findProgram ( progname ) ENV [ 'PATH' ] . split ( File :: PATH_SEPARATOR ) . each { | d | file = File . join ( d , progname ) return file if File . executable? ( file ) } return nil end
Search for the program specified by the given <tt>progname</tt> in the
user's <tt>PATH</tt>, and return the full path to it, or <tt>nil</tt> if
no such program is in the path.
Search for the program specified by the given <tt > progname< / tt > in the user ' s <tt > PATH< / tt > and return the full path to it or <tt > nil< / tt > if no such program is in the path .
progname
<not_specific>