Created
May 31, 2009 16:12
-
-
Save naokits/120924 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get path of currently-executing Ruby interpreter | |
# 現在実行中のRubyインタプリタのパスを取得する | |
require 'rbconfig' | |
ruby_path = File.join(Config::CONFIG["bindir"], | |
Config::CONFIG["RUBY_INSTALL_NAME"]+ | |
Config::CONFIG["EXEEXT"]) | |
p ruby_path // disp got ruby path | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment