Skip to content

Commit

Permalink
Merge pull request #8 from verachell/dev
Browse files Browse the repository at this point in the history
fix: compatibility with Ruby 3.2.2
  • Loading branch information
verachell authored Nov 4, 2023
2 parents af77a51 + 972a72d commit 8d7ed39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yeetwords.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2571,14 +2571,14 @@ def loop_iterator(curr_state, nested_commands, curr_condition, stop_condition, c
end
print "\n"
lexer_puts "About to write to file."
if File.exists?(final_proposed_fname) then
if File.exist?(final_proposed_fname) then
print "Enter filename for story: "
final_filename = gets.chomp
if final_filename == "" then final_filename = final_proposed_fname end
else
final_filename = final_proposed_fname
end
if File.exists?(final_filename) then
if File.exist?(final_filename) then
abort "STOPPING: ERROR - Desired filename #{final_filename} already exists. No changes were made to it."
else
lexer_puts("Writing #{word_count_arr(new_state["story_so_far"])} words to file: #{final_filename}")
Expand Down

0 comments on commit 8d7ed39

Please sign in to comment.