class Gem::Source::Vendor
这表示一个打包的源,它类似于已安装的 gem。
Public Class Methods
Source
# File lib/rubygems/source/vendor.rb, line 10 def initialize(path) @uri = path end
为已解压到 path 的 gem 创建一个新的 Vendor 源。
Public Instance Methods
Source
# File lib/rubygems/source/vendor.rb, line 14 def <=>(other) case other when Gem::Source::Lock then -1 when Gem::Source::Vendor then 0 when Gem::Source then 1 end end