Top Level Namespace
Defined Under Namespace
Modules: BleakHouse, Rake Classes: Array, Dir, Dispatcher, Hash, NilClass, String, Symbol
Instance Method Summary collapse
Instance Method Details
#which(basename) ⇒ Object
13 14 15 16 17 18 19 |
# File 'ext/bleak_house/logger/build_ruby.rb', line 13 def which(basename) # system('which') is not compatible across Linux and BSD ENV['PATH'].split(File::PATH_SEPARATOR).detect do |directory| path = File.join(directory, basename.to_s) path if File.exist? path end end |