Skip to content

End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

Gem::Resolver::Specification#install

install(options = {}) { |installer| ... }

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.

See also #full_name #installable_platform? #download also in 4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0