Class: Sfp::Visitor::Default
- Inherits:
-
Object
- Object
- Sfp::Visitor::Default
- Defined in:
- lib/sfp/visitors.rb
Overview
An example of class Visitor which can be used to traverse from one node to another node (bread first). This is based on ‘Visitor’ pattern.
Instance Method Summary collapse
Instance Method Details
#visit(name, value, parent) ⇒ Object
6 |
# File 'lib/sfp/visitors.rb', line 6 def visit(name, value, parent); end |