tags:

views:

81

answers:

2

I tried

class X begin end

and

class X {}

neight correct. What is the right code?

+6  A: 

You need a semicolon after class X:

class X; end
Pär Wieslander
@Pär, thanks again!
Freewind
+7  A: 

correct and verified example:

class C; end

and another, tricky solution :)

C = Class.new
zed_0xff
@zed_0xff, thank you very much
Freewind