Class: CodeNode::IR::Graph

Inherits:
Object
  • Object
show all
Includes:
BuilderMethods, TemplateMethods
Defined in:
lib/code_node/ir/graph.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

#<<, #apply_styles, #node_for, #prune

Constructor Details

#initializeGraph

Returns a new instance of Graph.



195
196
197
198
199
200
# File 'lib/code_node/ir/graph.rb', line 195

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