Module: StartupTime::Util
Overview
StartupTime::Util - app-wide helper methods
Instance Method Summary collapse
-
#which(command) ⇒ Object
a wrapper around
TTY::Which.which
which allows commands to be passed as symbols as well as strings e.g.:.
Instance Method Details
#which(command) ⇒ Object
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"
13 14 15 |
# File 'lib/startup_time/util.rb', line 13 def which(command) TTY::Which.which(command.to_s) end |