method
def_system_command
v2_5_5 -
Show latest stable
- Class:
Shell::CommandProcessor
def_system_command(command, path = command)public
Defines a command, registering path as a Shell method for the given command.
Shell::CommandProcessor.def_system_command "ls" #=> Defines ls. Shell::CommandProcessor.def_system_command "sys_sort", "sort" #=> Defines sys_sort as sort