Sha256: 1f1b4095516e9c92f084d47443180ec199d6743f06769af5c82c0d2f0f8d8f89
Contents?: true
Size: 611 Bytes
Versions: 3
Compression:
Stored size: 611 Bytes
Contents
module Rley # This module is used as a namespace module GFG # This module is used as a namespace # Abstract class. Represents an edge in a grammar flow graph. # Responsibilities: # - To know the successor vertex class Edge # The destination vertex of the edge . attr_reader :successor def initialize(thePredecessor, theSuccessor) @successor = theSuccessor thePredecessor.add_edge(self) end def to_s() " --> #{successor.label}" end end # class end # module end # module # End of file
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rley-0.3.04 | lib/rley/gfg/edge.rb |
rley-0.3.01 | lib/rley/gfg/edge.rb |
rley-0.3.00 | lib/rley/gfg/edge.rb |