Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Gem::NameTuple#full_name
full_name
lib/rubygems/name_tuple.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/name_tuple.rb, line 67
def full_name
if @content_address
"#{@name}-#{@version}-#{@content_address}"
elsif @platform.nil? || @platform.empty? || @platform == Gem::Platform::RUBY
"#{@name}-#{@version}"
else
"#{@name}-#{@version}-#{@platform}"
end
end
Returns the full name (name-version) of this Gem. Platform information is included if it is not the default Ruby platform. This mimics the behavior of Gem::Specification#full_name.