lib/loxxy/ast/lox_variable_expr.rb in loxxy-0.2.02 vs lib/loxxy/ast/lox_variable_expr.rb in loxxy-0.2.03
- old
+ new
@@ -14,13 +14,9 @@
def initialize(aPosition, aName)
super(aPosition)
@name = aName
end
- # Part of the 'visitee' role in Visitor design pattern.
- # @param visitor [Ast::ASTVisitor] the visitor
- def accept(visitor)
- visitor.visit_variable_expr(self)
- end
+ define_accept # Add `accept` method as found in Visitor design pattern
end # class
end # module
end # module