Class: RDocF95::DOT::SimpleElement

Inherits:
Object
  • Object
show all
Defined in:
lib/rdoc-f95/dot.rb

Overview

a root class for any element in dot notation

Direct Known Subclasses

Element, Port

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject

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_sObject


82
83
84
# File 'lib/rdoc-f95/dot.rb', line 82

def to_s
  @name
end