Flowdock
method

to_dot

Importance_0
v6.1.3.1 - Show latest stable - 0 notes - Class: Dot
to_dot() public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_dispatch/journey/nfa/dot.rb, line 7
        def to_dot
          edges = transitions.map { |from, sym, to|
            "  #{from} -> #{to} [label=\"#{sym || 'ε'}\"];"
          }

          digraph nfa {  rankdir=LR;  node [shape = doublecircle];  #{accepting_states.join ' '};  node [shape = circle];#{edges.join "\n"}}
        end
Register or log in to add new notes.