Class: DotGraphPrinter
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(size = "11,9", orientation = "landscape") ⇒ DotGraphPrinter
constructor
A new instance of DotGraphPrinter.
- #to_graph(ast) ⇒ Object
Constructor Details
#initialize(size = "11,9", orientation = "landscape") ⇒ DotGraphPrinter
31 32 33 |
# File 'lib/rpdf2txt-rockit/graphdrawing.rb', line 31 def initialize(size = "11,9", orientation = "landscape") @size, @orientation = size, orientation end |
Instance Method Details
#to_graph(ast) ⇒ Object
35 36 37 38 39 |
# File 'lib/rpdf2txt-rockit/graphdrawing.rb', line 35 def to_graph(ast) @nodes, @links = Hash.new, Hash.new eval_to_dot(ast, nil) to_graph_from_nodes_and_links(@nodes, @links) end |