Apply suggestions from code review
Code review changes Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
88eae0633b
commit
3d27894015
@ -2208,13 +2208,15 @@ class Formula
|
|||||||
# @!attribute [w]
|
# @!attribute [w]
|
||||||
# The SPDX ID of the open-source license that the formula uses.
|
# The SPDX ID of the open-source license that the formula uses.
|
||||||
# Shows when running `brew info`.
|
# Shows when running `brew info`.
|
||||||
|
# Multiple licenses means that the software is licensed under multiple licenses.
|
||||||
|
# Do not use multiple licenses if e.g. different parts are under different licenses.
|
||||||
#
|
#
|
||||||
# <pre>license "BSD-2-Clause"</pre>
|
# <pre>license "BSD-2-Clause"</pre>
|
||||||
def license args=nil
|
def license(args = nil)
|
||||||
if args.blank?
|
if args.nil?
|
||||||
return @licenses
|
return @licenses
|
||||||
else
|
else
|
||||||
@licenses = args.class == String ? [args] : args
|
@licenses = Array(args)
|
||||||
puts @licenses
|
puts @licenses
|
||||||
# license.
|
# license.
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user