Class: Klee::FileAnalyzer

Inherits:
Object
  • Object
show all
Defined in:
lib/klee/file_analyzer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ FileAnalyzer

Returns a new instance of FileAnalyzer.



9
10
11
12
13
14
15
16
# File 'lib/klee/file_analyzer.rb', line 9

def initialize(path)
  @path = path
  @class_names = []
  @method_names = []
  @collaborators = []
  @method_collaborators = Hash.new { |h, k| h[k] = [] }
  parse
end

Instance Attribute Details

#class_namesObject (readonly)

Returns the value of attribute class_names.



7
8
9
# File 'lib/klee/file_analyzer.rb', line 7

def class_names
  @class_names
end

#collaboratorsObject (readonly)

Returns the value of attribute collaborators.



7
8
9
# File 'lib/klee/file_analyzer.rb', line 7

def collaborators
  @collaborators
end

#method_collaboratorsObject (readonly)

Returns the value of attribute method_collaborators.



7
8
9
# File 'lib/klee/file_analyzer.rb', line 7

def method_collaborators
  @method_collaborators
end

#method_namesObject (readonly)

Returns the value of attribute method_names.



7
8
9
# File 'lib/klee/file_analyzer.rb', line 7

def method_names
  @method_names
end

#pathObject (readonly)

Returns the value of attribute path.



7
8
9
# File 'lib/klee/file_analyzer.rb', line 7

def path
  @path
end