lib/loxxy/ast/lox_logical_expr.rb in loxxy-0.2.02 vs lib/loxxy/ast/lox_logical_expr.rb in loxxy-0.2.03

- old
+ new

@@ -14,15 +14,10 @@ def initialize(aPosition, anOperator, operand1, operand2) super(aPosition, [operand1, operand2]) @operator = anOperator end - # Part of the 'visitee' role in Visitor design pattern. - # @param visitor [Ast::ASTVisitor] the visitor - def accept(visitor) - visitor.visit_logical_expr(self) - end - + define_accept # Add `accept` method as found in Visitor design pattern alias operands subnodes end # class end # module end # module