Module: LicenseFinder::License
- Defined in:
- lib/license_finder/license.rb
Defined Under Namespace
Classes: Apache2, BSD, Base, GPLv2, ISC, LGPL, MIT, NewBSD, Python, Ruby, SimplifiedBSD, Text
Class Method Summary
collapse
Class Method Details
.all ⇒ Object
4
5
6
|
# File 'lib/license_finder/license.rb', line 4
def all
@all ||= []
end
|
.find_by_name(license_name) ⇒ Object
8
9
10
|
# File 'lib/license_finder/license.rb', line 8
def find_by_name(license_name)
all.detect { |l| l.names.map(&:downcase).include? license_name.to_s.downcase }
end
|