Class: Rley::GFG::ReturnEdge
Overview
Responsibilities:
- To know the successor vertex (tail)
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Attributes inherited from Edge
Instance Method Summary collapse
-
#initialize(thePredecessor, theSuccessor) ⇒ ReturnEdge
constructor
Pre-condition: thePredecessor is an EndVertex Pre-condition: theSuccessor is an ItemVertex.
Methods inherited from Edge
Constructor Details
#initialize(thePredecessor, theSuccessor) ⇒ ReturnEdge
Pre-condition: thePredecessor is an EndVertex Pre-condition: theSuccessor is an ItemVertex
18 19 20 21 |
# File 'lib/rley/gfg/return_edge.rb', line 18 def initialize(thePredecessor, theSuccessor) super(thePredecessor, theSuccessor) do_set_key(thePredecessor, theSuccessor) end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
14 15 16 |
# File 'lib/rley/gfg/return_edge.rb', line 14 def key @key end |