method
install
ruby latest stable - Class:
Gem::Resolver::Specification
install(options = {})public
Installs this specification using the Gem::Installer options. The install method yields a Gem::Installer instance, which indicates the gem will be installed, or nil, which indicates the gem is already installed.
After installation #spec is updated to point to the just-installed specification.