Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (1.1.12) is shown here.
ruby(args, stderr=nil)
public
Forks a ruby interpreter with same
type as ourself. juby will fork jruby, ruby will fork ruby etc.
# File spec/ruby_forker.rb, line 6
def ruby(args, stderr=nil)
config = ::Config::CONFIG
interpreter = File::join(config['bindir'], config['ruby_install_name']) + config['EXEEXT']
cmd = "#{interpreter} #{args}"
cmd << " 2> #{stderr}" unless stderr.nil?
`#{cmd}`
end