class Gem::Resolver::InstalledSpecification - Documentation for Ruby 3.4
Description: class Gem::Resolver::InstalledSpecification: An InstalledSpecification represents a gem that is already installed locally.
Keywords: ruby,class,Gem::Resolver::InstalledSpecification

# class Gem::Resolver::InstalledSpecification

An `InstalledSpecification` represents a gem that is already installed locally.

### Public Instance Methods

install (options = {}) { |nil| ... }
Source

    # File lib/rubygems/resolver/installed_specification.rb, line 18
    def install(options = {})
      yield nil
    end

This is a null install as this specification is already installed. `options` are ignored.

installable_platform? ()
Source

    # File lib/rubygems/resolver/installed_specification.rb, line 25
    def installable_platform?
      # BACKCOMPAT If the file is coming out of a specified file, then we
      # ignore the platform. This code can be removed in RG 3.0.
      return true if @source.is_a? Gem::Source::SpecificFile

      super
    end

Returns `true` if this gem is installable for the current platform.

Calls superclass method `Gem::Resolver::Specification#installable_platform?`
source ()
Source

    # File lib/rubygems/resolver/installed_specification.rb, line 54
    def source
      @source ||= Gem::Source::Installed.new
    end

The source for this specification