method
check_version
v2_4_6 -
Show latest stable
- Class:
Gem::Commands::InstallCommand
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