From: Michael Edgar Date: 2011-01-14T05:54:01+09:00 Subject: [ruby-core:34475] [Ruby 1.9-Feature#4265] Provide a core method Kernel#ruby for invoking a new Ruby instance Issue #4265 has been updated by Michael Edgar. > Do you really need a core method for this? People can just copy-paste the code we use in Phusion Passenger for locating the current Ruby. We even have RVM support. https://github.com/FooBarWidget/passenger/blob/6a5d5b2e502823208aad87b776cc0eaf032fe02e/lib/phusion_passenger/platform_info/ruby.rb#L45-88 It appears you'd need to include almost that entire module into a project to get all the necessary helper methods to make it work, not just the lines you linked. Over 300 lines is quite a lot for "just copy-paste", and the fact that it has to handle a wide variety of platforms and implementations makes it an excellent candidate for being supported in the standard library, doesn't it? Also, while I won't pretend to know the linked lines inside and out, I do see a few hardcoded forward slashes in paths, which don't seem too friendly to Windows users. Is there a separate method that is used for Windows, apart from the linked one? ---------------------------------------- http://redmine.ruby-lang.org/issues/show/4265 ---------------------------------------- http://redmine.ruby-lang.org