Class: Gem::Resolver::LocalSpecification

Inherits:
SpecSpecification show all
Defined in:
lib/rubygems/resolver/local_specification.rb

Overview

A LocalSpecification comes from a .gem file on the local filesystem.

Instance Attribute Summary

Attributes inherited from SpecSpecification

#spec

Attributes inherited from Specification

#dependencies, #name, #platform, #set, #source, #version

Instance Method Summary collapse

Methods inherited from SpecSpecification

#dependencies, #full_name, #initialize, #name, #platform, #version

Methods inherited from Specification

#full_name, #initialize, #install

Constructor Details

This class inherits a constructor from Gem::Resolver::SpecSpecification

Instance Method Details

#installable_platform?Boolean

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

Returns:

  • (Boolean)


9
10
11
12
13
# File 'lib/rubygems/resolver/local_specification.rb', line 9

def installable_platform?
  return true if @source.kind_of? Gem::Source::SpecificFile

  super
end