Module: JPTGRAMMAR::LogicalOrExpr2
- Defined in:
- lib/parser/jptgrammar.rb
Instance Method Summary collapse
Instance Method Details
#ast ⇒ Object
2097 2098 2099 2100 2101 2102 2103 |
# File 'lib/parser/jptgrammar.rb', line 2097 def ast if elements[1].text_value == '' elements[0].ast else ["or", elements[0].ast, *elements[1].elements.map{|el| el.elements[3].ast}] end end |