# File lib/rgl/rdot.rb, line 209
209:     def to_s (t = '')
210: 
211:       # This code is totally incomprehensible; it needs to be replaced!
212: 
213:       label = @options['shape'] != 'record' && @ports.length == 0 ?
214:                 @options['label'] ? 
215:                     t + $tab + "label = \"#{@options['label']}\"\n" :
216:                     '' :
217:                 t + $tab + 'label = "' + " \\\n" +
218:                 t + $tab2 + "#{@options['label']}| \\\n" +
219:                 @ports.collect{ |i|
220:                     t + $tab2 + i.to_s
221:                 }.join( "| \\\n" ) + " \\\n" +
222:                 t + $tab + '"' + "\n"
223:             
224:             t + "#{@name} [\n" +
225:             @options.to_a.collect{ |i|
226:                 i[1] && i[0] != 'label' ? 
227:                     t + $tab + "#{i[0]} = #{i[1]}" : nil
228:             }.compact.join( ",\n" ) + ( label != '' ? ",\n" : "\n" ) + 
229:             label +
230:             t + "]\n" 
231:       end