Class RGL::DOT::Port
In: lib/rgl/rdot.rb
Parent: Object

Ports are used when a Node instance has its `shape’ option set to record or Mrecord. Ports can be nested.

Methods

new   to_s  

Attributes

label  [RW] 
name  [RW] 
ports  [RW] 

Public Class methods

Create a new port with either an optional name and label or a set of nested ports.

A nil value for name is valid; otherwise, it must be a String or it will be interpreted as ports.

Public Instance methods

Returns a string representation of this port. If ports is a non-empty Enumerable, a nested ports representation is returned; otherwise, a name-label representation is returned.

[Validate]