Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
class method
Gem::NameTuple.new
new(name, version, platform = Gem::Platform::RUBY, content_address: nil, ruby_abi: nil)
lib/rubygems/name_tuple.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/name_tuple.rb, line 10
def initialize(name, version, platform = Gem::Platform::RUBY, content_address: nil, ruby_abi: nil)
@name = name
@version = version
platform &&= platform.to_s
platform = Gem::Platform::RUBY if !platform || platform.empty?
@platform = platform
@content_address = content_address unless content_address.nil?
@ruby_abi = ruby_abi unless ruby_abi.nil?
end
No documentation available