Class: Licensee::Matchers::Cran
- Defined in:
- lib/licensee/matchers/cran_matcher.rb
Constant Summary collapse
- LICENSE_REGEX =
While we could parse the package.json or bower.json file, prefer a lenient regex for speed and security. Moar parsing moar problems.
/ ^license:\s*([a-z\-0-9\.]+) /ix
Instance Attribute Summary collapse
-
#file ⇒ Object
readonly
Returns the value of attribute file.
Method Summary
Methods inherited from Package
#confidence, #initialize, #match
Constructor Details
This class inherits a constructor from Licensee::Matchers::Package
Instance Attribute Details
#file ⇒ Object (readonly)
Returns the value of attribute file.
4 5 6 |
# File 'lib/licensee/matchers/cran_matcher.rb', line 4 def file @file end |