instance method
Gem::Specification#licenses=
licenses=(licenses)
lib/rubygems/specification.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/specification.rb, line 365
def licenses=(licenses)
@licenses = Array licenses
end
The license(s) for the library.
Each license must be a short name, no more than 64 characters.
This should just be the name of your license. The full text of the license should be inside of the gem when you build it.
See license= for more discussion
Usage:
Example
spec.licenses = ['MIT', 'GPL-2.0']
See also
#licenses
#missing_extensions?
#license=
#name_tuple
also in
4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0