Methods
B
D
I
Included Modules
Constants
FILENAME = "rhino-resource-graph"
 
FILETYPE = "png"
 
Class Public methods
build_graph()
   # File rhino/rhino/app/resources/rhino/info_graph.rb
23 def self.build_graph
24   RGL::ImplicitGraph.new do |g|
25     # Add every rhino resource
26     g.vertex_iterator { |c| Rhino.resource_classes.each(&c) }
27 
28     # If its owned by another resoource, link it
29     g.adjacent_iterator { |v, c| c.call(v.resource_owned_by.to_s.camelize.constantize) if v&.resource_owned_by && !v.global_owner? }
30 
31     g.directed = true
32   end
33 end
describe()
   # File rhino/rhino/app/resources/rhino/info_graph.rb
16 def self.describe
17   nil
18 end
index()
   # File rhino/rhino/app/resources/rhino/info_graph.rb
35 def self.index
36   build_graph.write_to_graphic_file(FILETYPE, FILENAME)
37 
38   { file: [FILENAME, FILETYPE].join("."), type: "image/png", disposition: "inline" }
39 end