1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/ruby/envutil.rb

14 lines
271 B
Ruby
Raw Normal View History

module EnvUtil
def rubybin
miniruby = "miniruby"
3.times do
if File.exist? miniruby or File.exist? miniruby+".exe"
return File.expand_path(miniruby)
end
miniruby = "../"+miniruby
end
"ruby"
end
module_function :rubybin
end