Sha256: 6c23eeed2d5a0efc862c7010abc65da67c05e16e9dae721201e7e935200f822b
Contents?: true
Size: 420 Bytes
Versions: 5
Compression:
Stored size: 420 Bytes
Contents
# frozen_string_literal: true require 'tty/which' module StartupTime # StartupTime::Util - app-wide helper methods module Util # 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" def which(command) TTY::Which.which(command.to_s) end end end
Version data entries
5 entries across 5 versions & 1 rubygems