This would be problematic for any programming language, though.<p>However, if you do want an elegant solution for your problem, may I recommend ruby-install[1] and the companion for easily changing between versions, chruby[2]. Alternatively, you could try RVM[3].<p>There are a couple more versions (one is even specifically designed for Windows), but I found ruby-install and chruby to be the most convenient ones for both personal and professional use.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;postmodern&#x2F;ruby-install" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;postmodern&#x2F;ruby-install</a>
[2] <a href="https:&#x2F;&#x2F;github.com&#x2F;postmodern&#x2F;chruby" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;postmodern&#x2F;chruby</a>
[3] <a href="https:&#x2F;&#x2F;rvm.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;rvm.io&#x2F;</a>