Class: RailsArchitect::Core
- Inherits:
-
Object
- Object
- RailsArchitect::Core
- Defined in:
- lib/rails_architect.rb
Overview
Core analyzer orchestrating all individual analyzers
Instance Attribute Summary collapse
-
#project_path ⇒ Object
readonly
Returns the value of attribute project_path.
-
#results ⇒ Object
readonly
Returns the value of attribute results.
Instance Method Summary collapse
- #analyze ⇒ Object
-
#initialize(project_path = Rails.root) ⇒ Core
constructor
A new instance of Core.
Constructor Details
#initialize(project_path = Rails.root) ⇒ Core
Returns a new instance of Core.
26 27 28 29 |
# File 'lib/rails_architect.rb', line 26 def initialize(project_path = Rails.root) @project_path = project_path @results = {} end |
Instance Attribute Details
#project_path ⇒ Object (readonly)
Returns the value of attribute project_path.
24 25 26 |
# File 'lib/rails_architect.rb', line 24 def project_path @project_path end |
#results ⇒ Object (readonly)
Returns the value of attribute results.
24 25 26 |
# File 'lib/rails_architect.rb', line 24 def results @results end |
Instance Method Details
#analyze ⇒ Object
31 32 33 34 35 36 37 38 |
# File 'lib/rails_architect.rb', line 31 def analyze puts "🔍 Analyzing Rails Project Architecture...\n".colorize(:blue) run_analyzers generate_report @results end |