class Gem::Source::Installed
表示已安装的 gem。这用于依赖项解析。
公共实例方法
<=>(other) 点击以切换源代码
Installed
来源在所有其他来源之前排序
# File 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
download(spec, path) 点击以切换源代码
我们不需要下载已安装的 gem
# File rubygems/source/installed.rb, line 30 def download(spec, path) nil end