lib/rvm/environment/rubies.rb in rvm-1.0.19 vs lib/rvm/environment/rubies.rb in rvm-1.0.20
- old
+ new
@@ -15,9 +15,13 @@
def remove(rubies, opts = {})
rvm(:remove, normalize_ruby_string(rubies), opts).successful?
end
# Changes the ruby string for the current environment.
+ #
+ # env.use '1.9.2' # => nil
+ # env.use 'ree' # => nil
+ #
def use(ruby_string, opts = {})
ruby_string = ruby_string.to_s
result = rvm(:use, ruby_string)
if result.successful?
@environment_name = ruby_string