Class: SingleFunctionGraph

Inherits:
FunctionGraph show all
Defined in:
lib/codegraph.rb

Direct Known Subclasses

UpperFunctionGraph

Instance Attribute Summary collapse

Attributes inherited from FunctionGraph

#adds, #debug, #excludes, #funx

Instance Method Summary collapse

Methods inherited from FunctionGraph

#showBody

Methods inherited from Graph

#empty?

Constructor Details

#initialize(config) ⇒ SingleFunctionGraph

Constructor, which creates an empty graph for the rootfunction <func>



197
198
199
200
201
202
203
204
# File 'lib/codegraph.rb', line 197

def initialize(config)
  super(config)
  # Holds the func'n names, that are allready scanned
  @scannednames = []
  # Root func
  @func = @config[:function]
  scan(self,@func)
end

Instance Attribute Details

#funcObject

Returns the value of attribute func.



194
195
196
# File 'lib/codegraph.rb', line 194

def func
  @func
end