I tried
class X begin end
and
class X {}
neight correct. What is the right code?
You need a semicolon after class X:
class X
class X; end
correct and verified example:
class C; end
and another, tricky solution :)
C = Class.new