instance method
Gem::NameTuple#full_name
full_name
lib/rubygems/name_tuple.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/name_tuple.rb, line 48
def full_name
case @platform
when nil, "", 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.