Parent

Methods

Class Index [+]

Quicksearch

RKelly::Visitors::DotVisitor::Node

Constants

ESCAPE
(Not documented)

Public Instance Methods

to_s() click to toggle source

(Not documented)

# File lib/rkelly/visitors/dot_visitor.rb, line 6
        def to_s
          counter = 0
          label = fields.map { |f|
            s = "<f#{counter}> #{f.to_s.gsub(ESCAPE, '\\\\\1').gsub(/[\r\n]/,' ')}"
            counter += 1
            s
          }.join('|')
          "\"#{node_id}\" [\nlabel = \"#{label}\"\nshape = \"record\"\n];"
        end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.