Class: Udb::Eqn::EqnAnd
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- Udb::Eqn::EqnAnd
- Extended by:
- T::Sig
- Defined in:
- lib/udb/eqn.rb
Instance Method Summary collapse
Instance Method Details
#to_logic_tree(term_map) ⇒ LogicNode
146 147 148 149 150 151 152 153 |
# File 'lib/udb/eqn.rb', line 146 def to_logic_tree(term_map) children = T.let([], T::Array[LogicNode]) children << send(:first).to_logic_tree(term_map) send(:r).elements.each do |e| children << e.unary_expression.to_logic_tree(term_map) end LogicNode.new(LogicNodeType::And, children) end |