Reputation: 198408
I tried
class X begin end
and
class X {}
neight correct. What is the right code?
Upvotes: 22
Views: 11517
Reputation: 33257
correct and verified example:
class C; end
and another, tricky solution :)
C = Class.new
Upvotes: 27