Class | DOT::DOTPort |
In: |
lib/rgl/rdot.rb
|
Parent: | Object |
Ports are used when a DOTNode instance has its `shape’ option set to record or Mrecord. Ports can be nested.
label | [RW] | |
name | [RW] | |
ports | [RW] |
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.
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.