I tried
class X begin end
and
开发者_JAVA百科class X {}
neight correct. What is the right code?
You need a semicolon after class X
:
class X; end
correct and verified example:
class C; end
and another, tricky solution :)
C = Class.new
I tried
class X begin end
and
开发者_JAVA百科class X {}
neight correct. What is the right code?
You need a semicolon after class X
:
class X; end
correct and verified example:
class C; end
and another, tricky solution :)
C = Class.new
点阵激光多少钱一次啊??:下一篇
精彩评论