I'm trying to use RVM to run programs in a particular version. Running this script puts RUBY_VERSION
, outputs 1.8.7
:
$ ruby --version
ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]
The following command shows different versions of Ruby installed:
$ rvm list
rvm rubies
=* ruby-1.9.2-p290 [ x86_64 ]
ruby-1.9.3-p448 [ x86_64 ]
# => - current
# =* - current && default
# * - default
How do I run my Ruby script in ruby-1.9.2?