Method: RGL::DOT::Node#initialize
- Defined in:
- lib/rgl/rdot.rb
#initialize(params = {}, option_list = NODE_OPTS+NODE_OPTS_LGCY) ⇒ Node
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.
300 301 302 303 |
# File 'lib/rgl/rdot.rb', line 300 def initialize(params = {}, option_list = NODE_OPTS+NODE_OPTS_LGCY) super(params, option_list) @ports = params['ports'] ? params['ports'] : [] end |