Method: LibGems.ruby
- Defined in:
- lib/libgems.rb
.ruby ⇒ Object
The path to the running Ruby interpreter.
922 923 924 925 926 927 928 929 930 931 932 933 |
# File 'lib/libgems.rb', line 922 def self.ruby if @ruby.nil? then @ruby = File.join(ConfigMap[:bindir], ConfigMap[:ruby_install_name]) @ruby << ConfigMap[:EXEEXT] # escape string in case path to ruby executable contain spaces. @ruby.sub!(/.*\s.*/m, '"\&"') end @ruby end |