In Files

  • rubygems/resolver/installed_specification.rb

Class/Module Index [+]



An InstalledSpecification represents a gem that is already installed locally.

Public Instance Methods

install(options = {}) click to toggle source

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

               # File rubygems/resolver/installed_specification.rb, line 17
def install options = {}
  yield nil
installable_platform?() click to toggle source

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

               # File rubygems/resolver/installed_specification.rb, line 24
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.kind_of? Gem::Source::SpecificFile

source() click to toggle source

The source for this specification

               # File rubygems/resolver/installed_specification.rb, line 53
def source
  @source ||=

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit

blog comments powered by Disqus