类 Gem::Resolver::InstalledSpecification
InstalledSpecification
表示一个已经本地安装的 gem。
公共实例方法
源代码
# File lib/rubygems/resolver/installed_specification.rb, line 18 def install(options = {}) yield nil end
这是一个空安装,因为此规范已安装。options
被忽略。
源代码
# File lib/rubygems/resolver/installed_specification.rb, line 25 def installable_platform? # BACKCOMPAT If the file is coming out of a specified file, then we # ignore the platform. This code can be removed in RG 3.0. return true if @source.is_a? Gem::Source::SpecificFile super end
如果此 gem 可以安装到当前平台,则返回 true
。
源代码
# File lib/rubygems/resolver/installed_specification.rb, line 54 def source @source ||= Gem::Source::Installed.new end
此规范的来源