Class: Klee::FileAnalyzer
- Inherits:
-
Object
- Object
- Klee::FileAnalyzer
- Defined in:
- lib/klee/file_analyzer.rb
Instance Attribute Summary collapse
-
#class_names ⇒ Object
readonly
Returns the value of attribute class_names.
-
#collaborators ⇒ Object
readonly
Returns the value of attribute collaborators.
-
#method_collaborators ⇒ Object
readonly
Returns the value of attribute method_collaborators.
-
#method_names ⇒ Object
readonly
Returns the value of attribute method_names.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path) ⇒ FileAnalyzer
constructor
A new instance of FileAnalyzer.
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_names ⇒ Object (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 |
#collaborators ⇒ Object (readonly)
Returns the value of attribute collaborators.
7 8 9 |
# File 'lib/klee/file_analyzer.rb', line 7 def collaborators @collaborators end |
#method_collaborators ⇒ Object (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_names ⇒ Object (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 |
#path ⇒ Object (readonly)
Returns the value of attribute path.
7 8 9 |
# File 'lib/klee/file_analyzer.rb', line 7 def path @path end |