# File lib/bundler/vendor/thor/util.rb, line 217
    def self.ruby_command
      @ruby_command ||= begin
        ruby = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name'])
        ruby << RbConfig::CONFIG['EXEEXT']

        # escape string in case path to ruby executable contain spaces.
        ruby.sub!(/.*\s.*/m, '"\&"')
        ruby
      end
    end