method

check_version

check_version()
public

No documentation available.

# File lib/rubygems/commands/install_command.rb, line 134
  def check_version # :nodoc:
    if options[:version] != Gem::Requirement.default and
         get_all_gem_names.size > 1 then
      alert_error "Can't use --version w/ multiple gems. Use name:ver instead."
      terminate_interaction 1
    end
  end