Class: SpdxGrammar::LogicalBinary
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- SpdxGrammar::LogicalBinary
- Defined in:
- lib/spdx_grammar.rb
Direct Known Subclasses
Instance Method Summary collapse
- #left ⇒ Object
-
#licenses ⇒ Object
Used internally.
- #right ⇒ Object
Instance Method Details
#left ⇒ Object
11 12 13 |
# File 'lib/spdx_grammar.rb', line 11 def left elements[0] end |
#licenses ⇒ Object
Used internally
7 8 9 |
# File 'lib/spdx_grammar.rb', line 7 def licenses (left.licenses + right.licenses).uniq end |
#right ⇒ Object
15 16 17 |
# File 'lib/spdx_grammar.rb', line 15 def right elements[1] end |