method
check_version
ruby latest stable - Class:
Gem::Commands::UninstallCommand
check_version()public
No documentation available.
# File lib/rubygems/commands/uninstall_command.rb, line 117
def check_version # :nodoc:
if options[:version] != Gem::Requirement.default and
get_all_gem_names.size > 1
alert_error "Can't use --version with multiple gems. You can specify multiple gems with" " version requirements using `gem uninstall 'my_gem:1.0.0' 'my_other_gem:~>2.0.0'`"
terminate_interaction 1
end
end