eval/eval.rb
def missing_binaries
    binaries = []
    @binaries_must_exist.each do |binary|
      next if File.exists? binary
      path_exists = ENV['PATH'].split(':').any? do |path|
        File.exists? File.join(path, '/', binary)
      end
      binaries << binary unless path_exists
    end
    binaries.empty? ? nil : binaries
  end
# Public: Checks to make sure all needed binaries to perform an evaluation
#         (@binaries_must_exist) exist and are located in a directory that
#         is in $PATH.
#
# Returns false if a needed binary doesn't exist, and true if they all do.
Checks to make sure all needed binaries to perform an evaluation
(@binaries_must_exist) exist and are located in a directory that
is in $PATH.

Returns false if a needed binary doesn't exist, and true if they all do.
Checks to make sure all needed binaries to perform an evaluation ( @binaries_must_exist ) exist and are located in a directory that is in $PATH . Returns false if a needed binary doesn ' t exist and true if they all do .
def missing_binaries
    binaries = []
    @binaries_must_exist.each do |binary|
      next if File.exists? binary
      path_exists = ENV['PATH'].split(':').any? do |path|
        File.exists? File.join(path, '/', binary)
      end
      binaries << binary unless path_exists
    end
    binaries.empty? ? nil : binaries
  end
def missing_binaries binaries = [ ] @binaries_must_exist . each do | binary | next if File . exists? binary path_exists = ENV [ 'PATH' ] . split ( ':' ) . any? do | path | File . exists? File . join ( path , '/' , binary ) end binaries << binary unless path_exists end binaries . empty? ? nil : binaries end
Public: Checks to make sure all needed binaries to perform an evaluation
(@binaries_must_exist) exist and are located in a directory that
is in $PATH.
Public : Checks to make sure all needed binaries to perform an evaluation ( @binaries_must_exist ) exist and are located in a directory that is in $PATH .