Module: Kernel

Defined in:
lib/commands/rubo/utils/which.rb

Overview

make Which() and WhichAll() work

Class Method Summary collapse

Class Method Details

.Which(cmd) ⇒ Object

rubocop:disable Naming/MethodName return abs-path to cmd



80
81
82
# File 'lib/commands/rubo/utils/which.rb', line 80

def Which(cmd)
  Which.which cmd
end

.WhichAll(cmd) ⇒ Object

return all abs-path(s) to cmd or [] if none



86
87
88
# File 'lib/commands/rubo/utils/which.rb', line 86

def WhichAll(cmd)
  Which.which_all cmd
end