Class RGL::DOT::Node
In: lib/rgl/rdot.rb
Parent: Element

A node representation. Edges are drawn between nodes. The rendering of a node depends upon the options set for it.

Methods

new   to_s  

Attributes

ports  [RW] 

Public Class methods

Creates a new Node with the params Hash providing settings for all node options. The option_list parameter restricts those options to the list of valid names it contains. The exception to this is the ports option which, if specified, must be an Enumerable containing a list of ports.

Public Instance methods

Returns a string representation of this node which is consumable by the graphviz tools dot and neato. The leader parameter is used to indent every line of the returned string, and the indent parameter is used to additionally indent nested items.

[Validate]