Top Level Namespace

Defined in:

Method Summary

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.


[View source]
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.


[View source]