Module: Axiom::Visitable
Overview
A mixin to allow instances to be visited
Instance Method Summary collapse
-
#accept(visitor) ⇒ self
Accept a visitor and dispatch the object to the visitor.
Instance Method Details
#accept(visitor) ⇒ self
Accept a visitor and dispatch the object to the visitor
19 20 21 22 |
# File 'lib/axiom/support/visitable.rb', line 19 def accept(visitor) visitor.visit(self) self end |