module StartupTime::Util

StartupTime::Util - app-wide helper methods

Public Instance Methods

which(command) click to toggle source

a wrapper around TTY::Which.which which allows commands to be passed as symbols as well as strings e.g.:

which("ruby") #=> "/usr/bin/ruby"
which(:ruby)  #=> "/usr/bin/ruby"
# File lib/startup_time/util.rb, line 13
def which(command)
  TTY::Which.which(command.to_s)
end