Method: Licensee::ProjectFiles::LicenseFile#attribution

Defined in:
lib/licensee/project_files/license_file.rb

#attributionObject



71
72
73
74
75
76
77
# File 'lib/licensee/project_files/license_file.rb', line 71

def attribution
  @attribution ||= if copyright? || license.content&.include?('[fullname]')
                     matches = Matchers::Copyright::REGEX
                               .match(content_without_title_and_version)
                     matches[0] if matches
                   end
end