Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Gem::BasicSpecification#full_name
full_name
lib/rubygems/basic_specification.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/basic_specification.rb, line 149
def full_name
if Gem::ContentAddress.content_addressed?(self)
"#{name}-#{version}-#{content_address}"
elsif platform == Gem::Platform::RUBY || platform.nil?
"#{name}-#{version}"
else
"#{name}-#{version}-#{platform}"
end
end
Returns the full name (name-version) of this Gem. Content address is included (name-version-content_address) if the gem is content-addressed (eligible and has a valid content address). Platform information is included (name-version-platform) if it is specified and not the default Ruby platform.
See also
#full_gem_path
#full_name_with_location
#extensions_dir
#full_require_paths
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0