Class: PrivateDetective::AnalyzeProject

Inherits:
Object
  • Object
show all
Defined in:
lib/private_detective/analyze_project.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(files:) ⇒ AnalyzeProject

Returns a new instance of AnalyzeProject.

Parameters:

  • files (Array)


10
11
12
13
# File 'lib/private_detective/analyze_project.rb', line 10

def initialize(files:)
  @files = files
  @report = {}
end

Instance Attribute Details

#filesObject

Returns the value of attribute files.



7
8
9
# File 'lib/private_detective/analyze_project.rb', line 7

def files
  @files
end

#reportObject

Returns the value of attribute report.



7
8
9
# File 'lib/private_detective/analyze_project.rb', line 7

def report
  @report
end

Instance Method Details

#analyze_projectObject



15
16
17
18
19
20
21
22
# File 'lib/private_detective/analyze_project.rb', line 15

def analyze_project
  analyze_files
  filter_report
  show_report

  # Exit the IRB session after the report is shown
  exit
end