Class: DOT::DOTSimpleElement

Inherits:
Object
  • Object
show all
Defined in:
lib/puppet/external/dot.rb

Overview

a root class for any element in dot notation

Direct Known Subclasses

DOTElement, DOTPort

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ DOTSimpleElement

Returns a new instance of DOTSimpleElement.



121
122
123
# File 'lib/puppet/external/dot.rb', line 121

def initialize (params = {})
  @label = params['name'] ? params['name'] : ''
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



119
120
121
# File 'lib/puppet/external/dot.rb', line 119

def name
  @name
end

Instance Method Details

#to_sObject



125
126
127
# File 'lib/puppet/external/dot.rb', line 125

def to_s
  @name
end