# File lib/mspec/helpers/ruby_exe.rb, line 94 94: def resolve_ruby_exe 95: [:env, :engine, :name, :install_name].each do |option| 96: next unless cmd = ruby_exe_options(option) 97: exe = cmd.split.first 98: 99: # It has been reported that File.executable is not reliable 100: # on Windows platforms (see commit 56bc555c). So, we check the 101: # platform. 102: if File.exists?(exe) and (PlatformGuard.windows? or File.executable?(exe)) 103: return cmd 104: end 105: end 106: nil 107: end