Skip to content

Instantly share code, notes, and snippets.

View shioyama's full-sized avatar

Chris Salzberg shioyama

View GitHub Profile
@melborne
melborne / ruby_tree.rb
Created October 18, 2013 09:51
Draw Ruby universe with gviz(graphviz wrapper in Ruby)
# Draw Ruby universe with gviz(graphviz wrapper in Ruby)
# try `gviz build [THIS_FILE]` at terminal
classes = ObjectSpace.each_object(Class)
.reject { |k| "#{k}".match /Gem|Thor|Gviz/ }
global layout:'fdp'
nodes style:'filled', colorscheme:'purd6'
edges color:'maroon'