Class: DOT::DOTSimpleElement
- Inherits:
-
Object
- Object
- DOT::DOTSimpleElement
- Defined in:
- lib/rdoc/dot/dot.rb
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.
83 84 85 |
# File 'lib/rdoc/dot/dot.rb', line 83 def initialize( params = {} ) @label = params['name'] ? params['name'] : '' end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
81 82 83 |
# File 'lib/rdoc/dot/dot.rb', line 81 def name @name end |
Instance Method Details
#to_s ⇒ Object
87 88 89 |
# File 'lib/rdoc/dot/dot.rb', line 87 def to_s @name end |