怎么获取ruby的安装路径

如何获取ruby的安装路径

require "rbconfig"
puts File.join(Config::CONFIG["bindir"], Config::CONFIG["ruby_install_name"])