Unlocking spreadsheet files quickly - follow-up
Good job listening to feedback. Keep at it.


Use two spaces to indent.
Name your methods verbs, not nouns (e.g., unlock_spreadsheet).
Split on comma and then use strip to remove leading and trailing whitespace.
Rather than calling the method recursively, you may want to put a loop do around the method and then break when you're done.
If you run Rubocop, you'll see that your method is too long. Instead, you can move each set of actions inside of if and else blocks into their own methods.