We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecfd220 commit 971b189Copy full SHA for 971b189
lib/analyze_solution.rb
@@ -7,7 +7,7 @@ def call
7
code_to_analyze = File.read(solution_path / FILENAMES[exercise_slug])
8
9
puts "Analysing #{exercise_slug}"
10
- classified_exercise = exercise_slug.tr('-', '_').classify
+ classified_exercise = exercise_slug.split('-').map(&:capitalize).join
11
results = "#{classified_exercise}::Analyze".constantize.(code_to_analyze)
12
13
File.open(output_path / "analysis.json", "w") do |f|
0 commit comments