类 Gem::NameTuple
公共类方法
new(名称, 版本, 平台=Gem::Platform::RUBY) 点击切换源代码
# File bundler/rubygems_ext.rb, line 408 def initialize(name, version, platform=Gem::Platform::RUBY) if Gem::Platform === platform initialize_with_platform(name, version, platform.to_s) else initialize_with_platform(name, version, platform) end end
公共实例方法
lock_name() 点击切换源代码
# File bundler/rubygems_ext.rb, line 417 def lock_name if platform == Gem::Platform::RUBY "#{name} (#{version})" else "#{name} (#{version}-#{platform})" end end