Class: GraphvizGenerator
- Inherits:
-
Object
- Object
- GraphvizGenerator
- Defined in:
- lib/generators/graphviz/graphviz_generator.rb
Instance Method Summary collapse
- #generate(node) ⇒ Object
-
#initialize(config) ⇒ GraphvizGenerator
constructor
A new instance of GraphvizGenerator.
Constructor Details
#initialize(config) ⇒ GraphvizGenerator
Returns a new instance of GraphvizGenerator.
5 6 7 |
# File 'lib/generators/graphviz/graphviz_generator.rb', line 5 def initialize(config) @factory = GraphDrawerFactory.new config end |
Instance Method Details
#generate(node) ⇒ Object
9 10 11 |
# File 'lib/generators/graphviz/graphviz_generator.rb', line 9 def generate(node) "digraph system {\ncompound=true;\n#{draw(node)}}\n" end |