Method: Licensed::Sources::Manifest::Dependency#source_files
- Defined in:
- lib/licensed/sources/manifest.rb
#source_files ⇒ Object
Returns an enumeration of Licensee::ProjectFiles::LicenseFile representing licenses found in source header comments
205 206 207 208 209 210 211 212 213 214 |
# File 'lib/licensed/sources/manifest.rb', line 205 def source_files @source_files ||= begin @sources .select { |file| File.file?(file) } .flat_map { |file| source_file_comments(file) } .map do |comment, file| Licensee::ProjectFiles::LicenseFile.new(comment, file) end end end |