Sha256: 350df7beaf4dd4b1aa22e4e9c14969909628bcc571436763903fafc0d7136a38

Contents?: true

Size: 342 Bytes

Versions: 32

Compression:

Stored size: 342 Bytes

Contents

#!/usr/bin/ruby -I../lib

require 'gratr/import'
require 'gratr/dot'

module_graph=Digraph.new
ObjectSpace.each_object(Module) do |m|
  m.ancestors.each {|a| module_graph.add_edge!(m,a) if m != a} 
end

gv = module_graph.vertices.select {|v| v.to_s.match(/GRATR/)}
module_graph.induced_subgraph(gv).write_to_graphic_file('jpg','module_graph')

Version data entries

32 entries across 32 versions & 5 rubygems

Version Path
auser-poolparty-1.3.0 vendor/gems/gratr/examples/module_graph.rb
auser-poolparty-1.3.1 vendor/gems/gratr/examples/module_graph.rb
auser-poolparty-1.3.10 vendor/gems/gratr/examples/module_graph.rb
auser-poolparty-1.3.11 vendor/gems/gratr/examples/module_graph.rb
auser-poolparty-1.3.12 vendor/gems/gratr/examples/module_graph.rb
auser-poolparty-1.3.13 vendor/gems/gratr/examples/module_graph.rb
auser-poolparty-1.3.14 vendor/gems/gratr/examples/module_graph.rb
auser-poolparty-1.3.15 vendor/gems/gratr/examples/module_graph.rb
auser-poolparty-1.3.16 vendor/gems/gratr/examples/module_graph.rb
auser-poolparty-1.3.17 vendor/gems/gratr/examples/module_graph.rb
auser-poolparty-1.3.2 vendor/gems/gratr/examples/module_graph.rb
auser-poolparty-1.3.3 vendor/gems/gratr/examples/module_graph.rb
auser-poolparty-1.3.4 vendor/gems/gratr/examples/module_graph.rb
auser-poolparty-1.3.5 vendor/gems/gratr/examples/module_graph.rb
auser-poolparty-1.3.6 vendor/gems/gratr/examples/module_graph.rb
auser-poolparty-1.3.7 vendor/gems/gratr/examples/module_graph.rb
auser-poolparty-1.3.8 vendor/gems/gratr/examples/module_graph.rb
fairchild-poolparty-1.3.17 vendor/gems/gratr/examples/module_graph.rb
fairchild-poolparty-1.3.5 vendor/gems/gratr/examples/module_graph.rb
gratr19-0.4.4.1 examples/module_graph.rb