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 4521ff1 commit 61bfab0Copy full SHA for 61bfab0
lib/analyze_solution.rb
@@ -4,7 +4,7 @@ class AnalyzeSolution
4
initialize_with :exercise_slug, :path
5
6
def call
7
- code_to_analyze = File.readlines(path / FILENAMES[exercise_slug])
+ code_to_analyze = File.read(path / FILENAMES[exercise_slug])
8
9
classified_exercise = exercise_slug.tr('-', '_').classify
10
results = "#{classified_exercise}::Analyze".constantize.(code_to_analyze)
0 commit comments