Class: CodeNode::IR::Graph

Inherits:
Object
  • Object
show all
Includes:
BuilderMethods, TemplateMethods
Defined in:
lib/code_node/ir/graph.rb,
lib/code_node/ir/graph/builder_methods.rb,
lib/code_node/ir/graph/template_methods.rb

Overview

A collection of Nodes

Defined Under Namespace

Modules: BuilderMethods, TemplateMethods

Instance Attribute Summary

Attributes included from BuilderMethods

#scope

Instance Method Summary collapse

Methods included from TemplateMethods

#each_class, #each_containment, #each_extension, #each_inclusion, #each_inheritance, #each_module

Methods included from BuilderMethods

#add_or_find_duplicate, #apply_styles, #node_for, #prune

Constructor Details

#initializeGraph

Returns a new instance of Graph.



15
16
17
18
19
20
# File 'lib/code_node/ir/graph.rb', line 15

def initialize
  @exclude_matchers = []
  @style_matchers = []
  @nodes = {}
  @scope = []
end