Class: SpdxParser
- Inherits:
-
Object
- Object
- SpdxParser
- Defined in:
- lib/spdx_parser.rb
Constant Summary collapse
- SKIP_PARENS =
["NONE", "NOASSERTION", ""].freeze
Class Method Summary collapse
Class Method Details
.parse(data) ⇒ Object
13 14 15 16 |
# File 'lib/spdx_parser.rb', line 13 def self.parse(data) data ||= "" parse_tree(data) end |
.parse_licenses(data) ⇒ Object
18 19 20 21 |
# File 'lib/spdx_parser.rb', line 18 def self.parse_licenses(data) tree = parse_tree(data) tree.get_licenses end |