Class: Gem::Resolver::LocalSpecification
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
SpecSpecification,
Specification
|
|
|
Instance Chain:
self,
SpecSpecification,
Specification
|
|
| Inherits: |
Gem::Resolver::SpecSpecification
|
| Defined in: | lib/rubygems/resolver/local_specification.rb |
Overview
A LocalSpecification comes from a .gem file on the local filesystem.
Class Method Summary
SpecSpecification - Inherited
| .new | A SpecSpecification is created for a |
Specification - Inherited
| .new | Sets default instance variables for the specification. |
Instance Attribute Summary
-
#installable_platform? ⇒ Boolean
readonly
Returns
trueif this gem is installable for the current platform. - #local? ⇒ Boolean readonly Internal use only
Specification - Inherited
| #dependencies | The dependencies of the gem for this specification. |
| #installable_platform? | Returns true if this specification is installable on this platform. |
| #name | The name of the gem for this specification. |
| #platform | The platform this gem works on. |
| #set | The set this specification came from. |
| #source | The source for this specification. |
| #spec | The ::Gem::Specification for this Specification. |
| #version | The version of the gem for this specification. |
| #local? | |
Instance Method Summary
- #pretty_print(q) Internal use only
SpecSpecification - Inherited
| #dependencies | The dependencies of the gem for this specification. |
| #full_name | The name and version of the specification. |
| #name | The name of the gem for this specification. |
| #platform | The platform this gem works on. |
| #version | The version of the gem for this specification. |
Specification - Inherited
| #full_name | The name and version of the specification. |
| #install | Installs this specification using the ::Gem::Installer |
| #fetch_development_dependencies | Fetches development dependencies if the source does not provide them by default (see APISpecification). |
Constructor Details
This class inherits a constructor from Gem::Resolver::SpecSpecification
Instance Attribute Details
#installable_platform? ⇒ Boolean (readonly)
Returns true if this gem is installable for the current platform.
# File 'lib/rubygems/resolver/local_specification.rb', line 10
def installable_platform? return true if @source.kind_of? Gem::Source::SpecificFile super end
#local? ⇒ Boolean (readonly)
# File 'lib/rubygems/resolver/local_specification.rb', line 16
def local? # :nodoc: true end
Instance Method Details
#pretty_print(q)
# File 'lib/rubygems/resolver/local_specification.rb', line 20
def pretty_print q # :nodoc: q.group 2, '[LocalSpecification', ']' do q.breakable q.text "name: #{name}" q.breakable q.text "version: #{version}" q.breakable q.text "platform: #{platform}" q.breakable q.text 'dependencies:' q.breakable q.pp dependencies q.breakable q.text "source: #{@source.path}" end end