класс SyntaxError
Вызывается при обнаружении Ruby-кода с недопустимым синтаксисом.
eval("1+1=2")
вызывает исключение:
SyntaxError: (eval):1: syntax error, unexpected '=', expecting $end
Ruby Core © 1993–2017 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
Licensed under their own licenses.