class Gem::Source::Installed
表示已安装的 gem。这用于依赖项解析。
Public Instance Methods
Source
# File lib/rubygems/source/installed.rb, line 14 def <=>(other) case other when Gem::Source::Git, Gem::Source::Lock, Gem::Source::Vendor then -1 when Gem::Source::Installed then 0 when Gem::Source then 1 end end
Installed 源会在所有其他源之前排序
Source
# File lib/rubygems/source/installed.rb, line 30 def download(spec, path) nil end
我们不需要下载已安装的 gem