-
Notifications
You must be signed in to change notification settings - Fork 0
waslogic/mod_dotter
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
methods for mapping a module's object space to a DOT file Prerequisites: The ruby code doesn't have any prerequisites; however, to turn the dot files into pretty pictures you will need Graphviz (http://www.graphviz.org/). Usage: # write mod diagram to a dot file def mymod_to_dot_file(mod, directional=false) File.open('mymod.dot', 'w+'){|f| f.write mod.to_diagram(directional) } end # write a directional diagram to a dot file and then process the file with dot to produce an SVG image def dot_mymod(mod) mymod_to_dot_file(mod, true) `dot -Tsvg -o mymod.svg mymod.dot` end # write a non-directional diagram to a dot file and then process the file with neato to produce an SVG image def neato_mymod(mod) mymod_to_dot_file(mod) `neato -Tsvg -o mymod.svg mymod.dot` end
About
methods for mapping a module's object space to a DOT file
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published