lib/loxxy/ast/lox_class_stmt.rb in loxxy-0.2.02 vs lib/loxxy/ast/lox_class_stmt.rb in loxxy-0.2.03
- old
+ new
@@ -22,13 +22,9 @@
@name = aName.dup
@superclass = aSuperclassName
@body = theMethods
end
- # Part of the 'visitee' role in Visitor design pattern.
- # @param visitor [Ast::ASTVisitor] the visitor
- def accept(visitor)
- visitor.visit_class_stmt(self)
- end
+ define_accept # Add `accept` method as found in Visitor design pattern
end # class
end # module
end # module