Class: RDocF95::DOT::SimpleElement
- Inherits:
-
Object
- Object
- RDocF95::DOT::SimpleElement
- Defined in:
- lib/rdoc-f95/dot.rb
Overview
a root class for any element in dot notation
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ SimpleElement
constructor
A new instance of SimpleElement.
- #to_s ⇒ Object
Constructor Details
#initialize(params = {}) ⇒ SimpleElement
Returns a new instance of SimpleElement.
78 79 80 |
# File 'lib/rdoc-f95/dot.rb', line 78 def initialize( params = {} ) @label = params['name'] ? params['name'] : '' end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
76 77 78 |
# File 'lib/rdoc-f95/dot.rb', line 76 def name @name end |
Instance Method Details
#to_s ⇒ Object
82 83 84 |
# File 'lib/rdoc-f95/dot.rb', line 82 def to_s @name end |