Class: Prism::DotVisitor::Digraph
Do not use. This class is for internal use only.
| Relationships & Source Files | |
| Inherits: | Object |
| Defined in: | lib/prism/dot_visitor.rb |
Class Method Summary
- .new ⇒ Digraph constructor
Instance Attribute Summary
- #edges readonly
- #nodes readonly
- #waypoints readonly
Instance Method Summary
Constructor Details
.new ⇒ Digraph
# File 'lib/prism/dot_visitor.rb', line 66
def initialize @nodes = [] @waypoints = [] @edges = [] end
Instance Attribute Details
#edges (readonly)
[ GitHub ]#nodes (readonly)
[ GitHub ]#waypoints (readonly)
[ GitHub ]Instance Method Details
#edge(value)
[ GitHub ]# File 'lib/prism/dot_visitor.rb', line 80
def edge(value) edges << value end
#node(value)
[ GitHub ]# File 'lib/prism/dot_visitor.rb', line 72
def node(value) nodes << value end
#to_dot
[ GitHub ]#waypoint(value)
[ GitHub ]# File 'lib/prism/dot_visitor.rb', line 76
def waypoint(value) waypoints << value end