Class: SingleFunctionGraph
- Inherits:
-
FunctionGraph
- Object
- RGL::DirectedAdjacencyGraph
- FunctionGraph
- SingleFunctionGraph
- Defined in:
- lib/codegraph.rb
Direct Known Subclasses
Constant Summary
Constants inherited from FunctionGraph
Instance Attribute Summary collapse
-
#func ⇒ Object
Returns the value of attribute func.
Attributes inherited from FunctionGraph
#adds, #debug, #excludes, #funx
Instance Method Summary collapse
-
#fill(filelist, exclude = []) ⇒ Object
Works like the one from FunctionGraph except, that it calls ‘scan’ for the recursive descent throug all functions given in <filelist> - exclude.
-
#initialize(func) ⇒ SingleFunctionGraph
constructor
Constructor, which creates an empty graph for the rootfunction <func>.
Methods inherited from FunctionGraph
#display, #display_functionbody, #limit, #to_dot, #to_txt, #to_type
Constructor Details
#initialize(func) ⇒ SingleFunctionGraph
Constructor, which creates an empty graph for the rootfunction <func>
227 228 229 230 231 232 233 |
# File 'lib/codegraph.rb', line 227 def initialize(func) # Holds the func'n names, that are allready scanned @scannednames = [] # Root func @func = func super() end |
Instance Attribute Details
#func ⇒ Object
Returns the value of attribute func.
224 225 226 |
# File 'lib/codegraph.rb', line 224 def func @func end |
Instance Method Details
#fill(filelist, exclude = []) ⇒ Object
Works like the one from FunctionGraph except, that it calls ‘scan’ for the recursive descent throug all functions given in <filelist> - exclude
237 238 239 240 |
# File 'lib/codegraph.rb', line 237 def fill(filelist,exclude=[]) genFiles(self,filelist,exclude) scan(self, func) end |