Class: AbstractGraph::Composition::Vertex

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#nameObject

Returns the value of attribute name.



8
9
10
# File 'lib/abstract_graph/composition/vertex.rb', line 8

def name
  @name
end

#valueObject

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

#deleteObject



7
8
# File 'lib/abstract_graph/composition/vertex/delete.rb', line 7

def delete
end