Class: Sablon::HTMLConverter::Visitor
- Inherits:
-
Object
- Object
- Sablon::HTMLConverter::Visitor
- Defined in:
- lib/sablon/html/visitor.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#visit(node) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/sablon/html/visitor.rb', line 4 def visit(node) method_name = "visit_#{node.class.node_name}" if respond_to? method_name public_send method_name, node end end |