class RGL::DOT::Port
def to_s
name-label representation is returned.
Enumerable, a nested ports representation is returned; otherwise, a
Returns a string representation of this port. If ports is a non-empty
def to_s if @ports.nil? || @ports.empty? n = (name.nil? || name.empty?) ? '' : "<#{name}>" n + ((n.empty? || label.nil? || label.empty?) ? '' : ' ') + label.to_s else '{' + @ports.collect { |p| p.to_s }.join(' | ') + '}' end end