class DOT::DOTPort

This is used when we build nodes that have shape=record ports don't have options :)

Attributes

label[RW]

Public Class Methods

new(params = {}) click to toggle source
Calls superclass method DOT::DOTSimpleElement::new
    # File lib/puppet/external/dot.rb
171 def initialize(params = {})
172   super(params)
173   @name = params['label'] ? params['label'] : ''
174 end

Public Instance Methods

to_s() click to toggle source
    # File lib/puppet/external/dot.rb
176 def to_s
177   ( @name && @name != "" ? "<#{@name}>" : "" ) + "#{@label}"
178 end