Class: Gem::Source::Installed
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Subclasses:
|
|
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
::Gem::Source
|
|
Instance Chain:
self,
::Gem::Source ,
::Gem::Text ,
Comparable
|
|
Inherits: |
Gem::Source
|
Defined in: | lib/rubygems/source/installed.rb |
Overview
Represents an installed gem. This is used for dependency resolution.
Constant Summary
::Gem::Source
- Inherited
Class Method Summary
- .new ⇒ Installed constructor Internal use only
::Gem::Source
- Inherited
.new | Creates a new |
Instance Attribute Summary
::Gem::Source
- Inherited
#update_cache? | Returns true when it is possible and safe to update the cache directory. |
#uri | The URI this source will fetch gems from. |
Instance Method Summary
-
#<=>(other)
Installed
sources sort before all other sources. -
#download(spec, path)
We don’t need to download an installed gem.
- #pretty_print(q) Internal use only
::Gem::Source
- Inherited
#<=> | Sources are ordered by installation preference. |
#cache_dir | Returns the local directory to write #uri to. |
#download | Downloads |
#fetch_spec | Fetches a specification for the given |
#load_specs | Loads |
#typo_squatting?, #enforce_trailing_slash, #==, | |
#dependency_resolver_set | Returns a Set that can fetch specifications from this source. |
#eql? | Alias for #==. |
#hash, #pretty_print |
::Gem::Text
- Included
#clean_text | Remove any non-printable characters and make the text suitable for printing. |
#format_text | Wraps |
#levenshtein_distance | Returns a value representing the “cost” of transforming str1 into str2 Vendored version of |
#truncate_text, #min3 |
Constructor Details
.new ⇒ Installed
# File 'lib/rubygems/source/installed.rb', line 7
def initialize # :nodoc: @uri = nil end
Instance Method Details
#<=>(other)
Installed
sources sort before all other sources
#download(spec, path)
We don’t need to download an installed gem
# File 'lib/rubygems/source/installed.rb', line 30
def download(spec, path) nil end
#pretty_print(q)
# File 'lib/rubygems/source/installed.rb', line 34
def pretty_print(q) # :nodoc: q.object_group(self) do q.text "[Installed]" end end