class Journey::Visitors::Dot - journey-1.0.4 Documentation

# class Journey::Visitors::Dot

### Public Class Methods

new() click to toggle source

    # File lib/journey/visitors.rb, line 124
    def initialize
      @nodes = []
      @edges = []
    end

### Public Instance Methods

accept(node) click to toggle source
Calls superclass method

    # File lib/journey/visitors.rb, line 129
          def accept node
            super
            <<-eodot
    digraph parse_tree {
      size="8,5"
      node [shape = none];
      edge [dir = none];
      #{@nodes.join "\n"}
      #{@edges.join("\n")}
    }
            eodot
          end