Class: Rley::GFG::CallEdge
Overview
Specialization of an edge in a grammar flow graph that has a item vertex as its head (predecessor). and a start vertex (.X) as its tail (successor). 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) ⇒ CallEdge
constructor
Pre-condition: thePredecessor is an ItemVertex Pre-condition: theSuccessor is an StartVertex.
Methods inherited from Edge
Constructor Details
#initialize(thePredecessor, theSuccessor) ⇒ CallEdge
Pre-condition: thePredecessor is an ItemVertex Pre-condition: theSuccessor is an StartVertex
17 18 19 20 |
# File 'lib/rley/gfg/call_edge.rb', line 17 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.
13 14 15 |
# File 'lib/rley/gfg/call_edge.rb', line 13 def key @key end |