Class YAML::Transformer::Root
In: lib/yaml_extensions/transform.rb
Parent: Object

Methods

dottify   new   to_s   unique_name  

Attributes

children  [R] 

Public Class methods

[Source]

# File lib/yaml_extensions/transform.rb, line 156
      def initialize
        @name = 'root'
        @children = []
      end

Public Instance methods

[Source]

# 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

[Source]

# File lib/yaml_extensions/transform.rb, line 169
      def to_s
        'root'
      end
unique_name()

Alias for to_s

[Validate]