Top Level Namespace
Defined in:
Method Summary
-
which(command : Path | String) : Path
Returns a Path representing the absolute path of the given command, or raises a
Which::ExecutableNotFound
if it wasn't found in any of the directories in the $PATH enviroment variable. -
which?(command : Path | String) : Path | Nil
Returns a Path representing the absolute path of the given command, or
nil
if it wasn't found in any of the directories in the $PATH enviroment variable.
Method Detail
def which(command : Path | String) : Path
#
Returns a Path representing the absolute path of the given command, or raises
a Which::ExecutableNotFound
if it wasn't found in any of the directories in
the $PATH enviroment variable.
def which?(command : Path | String) : Path | Nil
#
Returns a Path representing the absolute path of the given command, or nil
if it wasn't found in any of the directories in the $PATH enviroment variable.