1. jhjaggars
  2. dictionary_switches

Source

dictionary_switches / code / PatternRefactoring / trashvisitor / VAluminum.py

1
2
3
4
5
6
7
8
# PatternRefactoring/trashvisitor/VAluminum.py
# Taking the previous approach of creating a
# specialized Aluminum for the visitor pattern.

class VAluminum(Aluminum, Visitable):
    def __init__(self, wt): Aluminum.__init__(wt)
    def accept(self, v):
        v.visit(self)