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
172 def initialize(params = {})
173   super(params)
174   @name = params['label'] ? params['label'] : ''
175 end

Public Instance Methods

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