Tuesday, April 12, 2016

unterminated string meets end of file (SyntaxError) Ruby 2.3.0

This happens when you have space between the w and the strings like this:

  RANKS = %w { 2 3 4 5 6 7 8 9 10 J Q K A }

Resolution:

  RANKS = %w{ 2 3 4 5 6 7 8 9 10 J Q K A }

Remove the space between the w and {.