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>



206
207
208
209
210
211
212
213
# File 'lib/codegraph.rb', line 206

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.



203
204
205
# File 'lib/codegraph.rb', line 203

def func
  @func
end