Class: AbstractGraph::Composition::Vertex
- Inherits:
-
Object
- Object
- AbstractGraph::Composition::Vertex
- Defined in:
- lib/abstract_graph/composition/vertex.rb,
lib/abstract_graph/composition/vertex/delete.rb,
lib/abstract_graph/composition/vertex/initialize.rb
Overview
public Vertex class
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
- #delete ⇒ Object
-
#initialize(name = "", value = nil) ⇒ Vertex
constructor
A new instance of Vertex.
Constructor Details
#initialize(name = "", value = nil) ⇒ Vertex
Returns a new instance of Vertex.
7 8 9 10 |
# File 'lib/abstract_graph/composition/vertex/initialize.rb', line 7 def initialize (name="", value=nil) @name = name @value = value end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
8 9 10 |
# File 'lib/abstract_graph/composition/vertex.rb', line 8 def name @name end |
#value ⇒ Object
Returns the value of attribute value.
9 10 11 |
# File 'lib/abstract_graph/composition/vertex.rb', line 9 def value @value end |
Instance Method Details
#delete ⇒ Object
7 8 |
# File 'lib/abstract_graph/composition/vertex/delete.rb', line 7 def delete end |