Method: FunctionGraph#initialize

Defined in:
lib/codegraph.rb

#initializeFunctionGraph

Returns a new instance of FunctionGraph.



43
44
45
46
47
48
49
50
51
52
53
54
55
# File 'lib/codegraph.rb', line 43

def initialize
   super
   @debug   = false
   # the following attribute will hold the functionnames and their bodies
   @funx    = Hash.new
   @lock    = Mutex.new
   @filesDB = File.exist?(@@filesDB) ? JSON.parse(File.open(@@filesDB).read) : Hash.new
   @filesCk = @db.hash
   @funxDB  = File.exist?(@@funxDB) ? JSON.parse(File.open(@@funxDB).read) : Hash.new
   @funxCk  = @funxDB.hash

   @adds, @excludes = [],[]
end