method

spec_license

ruby latest stable - Class: Gem::Commands::QueryCommand
spec_license(entry, spec)
private

No documentation available.

# File lib/rubygems/commands/query_command.rb, line 306
  def spec_license entry, spec
    return if spec.license.nil? or spec.license.empty?

    licenses = "License#{spec.licenses.length > 1 ? 's' : ''}: ".dup
    licenses << spec.licenses.join(', ')
    entry << "\n" << format_text(licenses, 68, 4)
  end