rubinius/rubinius

View on GitHub
mspec/lib/mspec/utils/ruby_name.rb

Summary

Maintainability
A
0 mins
Test Coverage
unless Object.const_defined?(:RUBY_NAME) and RUBY_NAME
  if Object.const_defined?(:RUBY_ENGINE) and RUBY_ENGINE
    RUBY_NAME = RUBY_ENGINE
  else
    require 'rbconfig'
    RUBY_NAME = RbConfig::CONFIG["RUBY_INSTALL_NAME"] || RbConfig::CONFIG["ruby_install_name"]
  end
end