Module: Xcake::Visitable
- Included in:
- Configuration, Project, Scheme, Target
- Defined in:
- lib/xcake/visitable.rb
Overview
This namespace provides all of methods for implementing the Visitable in the Visitor pattern.
Instance Method Summary collapse
-
#accept(visitor) ⇒ Object
This method accepts the visitors.
Instance Method Details
#accept(visitor) ⇒ Object
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.
18 19 20 21 |
# File 'lib/xcake/visitable.rb', line 18 def accept(visitor) visitor.visit(self) visitor.leave(self) end |