require 'util/enter_leave_visitor' require 'rockit/tree/base' module Rockit::Tree class Base include EnterLeaveVisitable def accept_visitor(visitor) visitor.visit_me_then_children(self, self.children) end end end