[Source]
# File lib/yaml_extensions/transform.rb, line 156 def initialize @name = 'root' @children = [] end
# File lib/yaml_extensions/transform.rb, line 161 def dottify ( stream ) stream << "#{self} [shape=circle, color=red, label=#{self}]\n" stream << "#{self} -> { rank=same; " @children.each { |e| stream << "#{e.unique_name} " } stream << "}\n" @children.each { |e| e.dottify(stream) } end
# File lib/yaml_extensions/transform.rb, line 169 def to_s 'root' end
Alias for to_s
[Validate]