module Xcake::Visitable

This namespace provides all of methods for implementing the Visitable in the Visitor pattern.

Public Instance Methods

accept(visitor) click to toggle source

This method accepts the visitors.

The default implementatio lets the visitor visit then leave.

Override this if you need to allow visitors to visit properties of a class.

@param [Visitor] visitor

the visitor to accept
# File lib/xcake/visitable.rb, line 18
def accept(visitor)
  visitor.visit(self)
  visitor.leave(self)
end