Class: SpdxGrammar::LogicalBinary

Inherits:
Treetop::Runtime::SyntaxNode
  • Object
show all
Defined in:
lib/spdx_grammar.rb

Direct Known Subclasses

LogicalAnd, LogicalOr

Instance Method Summary collapse

Instance Method Details

#leftObject



11
12
13
# File 'lib/spdx_grammar.rb', line 11

def left
  elements[0]
end

#licensesObject

Used internally



7
8
9
# File 'lib/spdx_grammar.rb', line 7

def licenses
  (left.licenses + right.licenses).uniq
end

#rightObject



15
16
17
# File 'lib/spdx_grammar.rb', line 15

def right
  elements[1]
end