A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.rubydoc.info/github/rubygems/rubygems/Gem/Source/Installed below:

Installed – Documentation for rubygems/rubygems (master) – RubyDoc.info

Class: Gem::Source::Installed Overview

Represents an installed gem. This is used for dependency resolution.

Direct Known Subclasses

Vendor

Constant Summary Constants inherited from Gem::Source

FILES

Instance Attribute Summary Attributes inherited from Gem::Source

#uri

Instance Method Summary collapse Methods inherited from Gem::Source

#==, #cache_dir, #dependency_resolver_set, #fetch_spec, #hash, #load_specs, #typo_squatting?, #update_cache?

Methods included from Text

#clean_text, #format_text, #levenshtein_distance, #min3, #truncate_text

Constructor Details #initializeInstalled
7
8
9
# File 'lib/rubygems/source/installed.rb', line 7

def initialize   @uri = nil
end
Instance Method Details #<=>(other) ⇒ Object

Installed sources sort before all other sources

#download(spec, path) ⇒ Object

We don’t need to download an installed gem

30
31
32
# File 'lib/rubygems/source/installed.rb', line 30

def download(spec, path)
  nil
end
#pretty_print(q) ⇒ Object
34
35
36
37
38
# File 'lib/rubygems/source/installed.rb', line 34

def pretty_print(q)   q.object_group(self) do
    q.text "[Installed]"
  end
end

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4