Class: LicenseFinder::PossibleLicenseFiles
- Inherits:
-
Object
- Object
- LicenseFinder::PossibleLicenseFiles
- Defined in:
- lib/license_finder/possible_license_files.rb
Constant Summary collapse
- LICENSE_FILE_NAMES =
%w(LICENSE License Licence COPYING README Readme ReadMe)
Class Method Summary collapse
Instance Method Summary collapse
- #find ⇒ Object
-
#initialize(install_path) ⇒ PossibleLicenseFiles
constructor
A new instance of PossibleLicenseFiles.
Constructor Details
#initialize(install_path) ⇒ PossibleLicenseFiles
Returns a new instance of PossibleLicenseFiles.
9 10 11 |
# File 'lib/license_finder/possible_license_files.rb', line 9 def initialize(install_path) @install_path = install_path end |
Class Method Details
.find(install_path) ⇒ Object
5 6 7 |
# File 'lib/license_finder/possible_license_files.rb', line 5 def self.find(install_path) new(install_path).find end |
Instance Method Details
#find ⇒ Object
13 14 15 16 17 |
# File 'lib/license_finder/possible_license_files.rb', line 13 def find paths_for_license_files.map do |path| get_file_for_path(path) end end |