Class: DOT::DOTSimpleElement
Overview
a root class for any element in dot notation
Direct Known Subclasses
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ DOTSimpleElement
constructor
A new instance of DOTSimpleElement.
- #to_s ⇒ Object
Constructor Details
#initialize(params = {}) ⇒ DOTSimpleElement
Returns a new instance of DOTSimpleElement.
122 123 124 |
# File 'lib/puppet/external/dot.rb', line 122 def initialize(params = {}) @label = params['name'] ? params['name'] : '' end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
120 121 122 |
# File 'lib/puppet/external/dot.rb', line 120 def name @name end |
Instance Method Details
#to_s ⇒ Object
126 127 128 |
# File 'lib/puppet/external/dot.rb', line 126 def to_s @name end |