Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Gem::QueryUtils#spec_license
spec_license(entry, spec)
lib/rubygems/query_utils.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/query_utils.rb, line 335
def spec_license(entry, spec)
return if spec.license.nil? || spec.license.empty?
licenses = "License#{spec.licenses.length > 1 ? "s" : ""}: ".dup
licenses << spec.licenses.join(", ")
entry << "\n" << format_text(licenses, 68, 4)
end
No documentation available
See also
#spec_homepage
#spec_loaded_from
#spec_authors
#spec_platform_ruby_abis
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0